0

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.

1
  • Please provide some code. At least from your stateProvider and the link. Commented Feb 27, 2015 at 8:46

1 Answer 1

0

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 }); 
Sign up to request clarification or add additional context in comments.

2 Comments

Perfect. $ionicViewService is deprecated. Is better $ionicHistory.nextViewOption
Great! Thanks for the heads up. Wasn't aware of that change =)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.