I have a Menu, but I want desabled in LoginPage before the HomePage
export class MyApp {
@ViewChild(Nav) nav: Nav;
rootPage: any;
loader: any;
pages: Array<{title: string, component: any}>;
constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen, public service: ServiceProvider, public loadingCtrl: LoadingController) {
this.initializeApp();
// used for an example of ngFor and navigation
this.pages = [
{ title: 'Causas', component: HomePage },
{ title: 'Meu perfil', component: ProfileClient },
{ title: 'Cadastrar Ocorrência', component: CreateOccurrence },
{ title: 'Ver Causas', component: CatchCauses },
{ title: 'Advogados', component: ListLawyers },
{ title: 'Acadêmico', component: Academic },
{ title: 'Sair', component: null },
];
this.login();
}
openPage(page) {
if(page.component){
this.nav.setRoot(page.component);
}
else {
this.service.destroyUserCredentials();
}
// return this.nav.setRoot(Begin);
}
How desable Menu in LoginPage ?