Hi,
I have the following html code:
<a ng-repeat="filter in imageFilters">
<p>{{ name }}</p>
<img id="{{id}}" class="img-filter" [src]="image">
</a>
and the following .ts file.
@Component({
selector : 'photo-filter',
templateUrl: 'photo-filter.html'
})
export class PhotoFilter {
image : any;
imagesFilters = [
{
name : 'Normal',
id : 'normal'
},
{
name : 'Claredon',
id : 'claredon'
},
{
name : 'Gingham',
id : 'gingham'
}
];
constructor(private navParams: NavParams) {
this.image = this.navParams.get('base64');
}
}
But only one image is displayed, and no name is displayed.
I’m a newbie, so can you let me know what the issue is ?
Thanks