i want to do like that how can i do that?
Please help me anyone
Thanks
you design this menu in app.html and for use icon with text modify page array declaration in app.comp.html
like this : pages: Array<{ title: string, component: any, icon: string }>;
this.pages = [
{ title: âMy profileâ, component: MyProfile, icon: âios-person-outlineâ }, //add your menu list
]
use in app.html as :
<button menuClose class=âmenuStyleâ ion-item *ngFor=âlet p of pagesâ (click)=âopenPageWithBackButton§â>
<ion-icon item-left class=âmenuIconâ [name]=âp.iconâ >
{{p.title}}
1 Like