How to turn off the Ionic menu startup?

Asked

Viewed 110 times

0

I would like to know how I turn off the startup menu Ionic on a given page, since I don’t want services are also activated.

1 answer

0

Try something like:

$ionicHistory.nextViewOptions({
   disableBack: false,
   historyRoot: true
 });

$ionicHistory.clearCache();
$ionicHistory.clearHistory();

$state.go("nhaac.perfil");

Declaring $ionicHistory in your controller.

  • I’m not sure if that’s the case, because your question was kind of generic. If you give me more details I can give you a more specific answer.

  • Example, I have a login page, I want that when the application starts the first page to run be it and its controller/service... but this happening the opposite, the first to run is the Menu... ai does not load certain things

  • To disable the home page bar in your view, in <ion-view> add Hide-Nav-bar="true"

  • Disable the view I know, I just don’t know how to disable the initial controller/service.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.