I am using the Ionic Framework with its AngularJS UI router and $ stateProvider to handle various views in my application.
However, itβs hard for me to understand how to tell $ stateProvider that I have different βMain Viewβ, and each of them has different Subviews.
When I am on /#/home , for example, and click on the link that sends me to /#/about , then /#/about will not be displayed as my own, new view. Instead, it goes to it as a subpage /#/home .
It works as it should when I replace $ stateProvider with AngularJS $ routeProvider, but then all the transitions disappeared.
I created a Pen for you to take a look at it.
http://codepen.io/anon/pen/gBDFi
There should be no transition between them. Each base URL should be a new tab.
javascript angularjs angular-ui-router ionic-framework angular-routing
Martin broder
source share