Please can somebody clarify when I would use an ion-nav-view
opposed to an ion-view
? I am learning AngularJS/Ionic (I have a basic understanding of AngularJS; and would like to use Ionic to enhance it).
I understand the ion-nav-view
implements the AngularUI Router service(?) which is a must in order to have nested views within views. But the documentation does not make clear where I should be using one or the other?
All the documentation states for ion-view
is:
A container for content, used to tell a parent ionNavBar about the current view.
But I have seen an ion-view
used outside navbar interface.
So what gives?
ion-nav-view
is the place where your ion-view
s get injected to.
You can see ion-nav-view
as the frame where your paint, the ion-view
, is gonna be painted on by the $stateProvider
.
Open templates --> menu.html
Search for **ion-nav-bar class="bar-stable"** change it
to **ion-nav-bar class="bar-stable bar-royal"**