This is a very simple question but i’m to noob to figure out alone the solution, i googled and looked for explanations but i really think i need someone specifically helping me out on this one
I just implemented a side-menu and i added this code in app.html:
<ion-menu [content]="mycontent"> <ion-header> <ion-toolbar> <ion-title>Side Menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <button ion-item (click)="openPage()" > Today </button> <button ion-item > Time machine </button> <button ion-item > About </button> </ion-list> </ion-content> </ion-menu> <ion-nav #mycontent [root]="rootPage"></ion-nav>
Usually i’d write my method in the page specific .ts file but now i have my html code inside app.html which is structured differently and hasn’t an app.ts file. I just want to access and use the openPage() and maybe even more resources and stuff.
What’s the best way to do this?