Currently facing an issue where I am attempting to utilize the app.component.ts
function on a page, but encountering an error.
EXCEPTION: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'e.pages.updatePages')
The function in app.component.ts is as follows:
updatePages(pages){
console.log(pages);
}
The code snippet from page.ts is shown below:
this.sidebarpage = [{ title: 'My Account', component: MyAccountPage }];
this.pages.updatePages(this.sidebarpage);
I have already imported the component in page.ts and included @ViewChild(MyApp) pages: MyApp;