With this approach, your views and routes aren’t tied down to the site URL. This way, you can change the parts of your site using your routing even if the URL does not change.
- https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views#view-names---relative-vs-absolute-names
- http://www.funnyant.com/angularjs-ui-router/
There are three main ways to activate a state:
- Call $state.go(). High-level convenience method. Learn More
- Click a link containing the ui-sref directive. Learn More
- Navigate to the url associated with the state. Learn More.