Hi, I have a side menu in app.component and I want to updatethis from some component like this :
app.component.html :
<ion-menu side="right" [content]="content" >
<ion-content >
<ion-list>
<button ion-item *ngFor="let p of pages" (tap)="openPage(p)">
{{p.title}}
</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav (onGetMember)="refreshMember(member)" [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
And I handle “onGetMember” in app.component.ts.
other.component :
export class OtherPage {
@Output() onGetMember: EventEmitter<any> = new EventEmitter<any>();
constructor(
) {
login(){
this.onGetMember.emit(data);
});
}
}
But, refreshMember function not called on time .