[SOLVED] SideNavigation with icon


I want to display my sidemenu navigation with icons behind links. I don’t know how to do this.
I try to add “icon” property to this code inside app.components :
this.pages = [
{ title: ‘Accueil’, component: Accueil, “icone”: “test” },
{ title: ‘Ma cave’, component: MaCave },
{ title: ‘Offres’, component: Offres }
And call this into app.html :
button menuClose ion-item *ngFor=“let p of pages” (click)=“openPage§”>
{{p.icone}} {{p.title}}

But it doesn’t work, the exte “test” does not appear! :sob:

Thanks for helping me! :slight_smile:

I solved it, just add this to the array declaration :
pages: Array<{title: string, component: any, icone: any}>;

And then it works! :smile: