Raúl Zambrano
Raúl Zambrano

Reputation: 1

Navigate problems with Angular.js

i'm working with Ionic Framework and i've the next problem.

I have 3 views templates: one.html, two.html, three.html, and one.html is the home of the application (no back button)

The navigation is correct between the views but i have problems if navigate from three.html to one.html because when navigate to one.html in navbar appears the back button and i need one.html identical as app start state

I navigate with $state.go('tab.one.html');

Thanks.

Upvotes: 0

Views: 104

Answers (1)

rmuller
rmuller

Reputation: 1837

You could use the nav-clear directive to do this (source)

or implement the code directly in your controller:

$ionicViewService.nextViewOptions({
  disableAnimate: true,
  disableBack: true
});

Upvotes: 0

Related Questions