Hi,
I need some help to improve my knowledge about how ionic work.
I use the ui-router included into ionic, and personalize the app with sass.
The main problem is to define the html structure of my page. Let me explain the problem:
Each page define a specific header (with different button).
I planned to put the header and the content in the subview.
So, on index.html, I put:
<body ng-app="myApp">
<ion-nav-view>
</ion-nav-view>
</body>
and on my subview:
<ion-pane>
<ion-header-bar class="bar-stable">
<h1 class="title">Test header</h1>
</ion-header-bar>
<ion-content>
Test content
</ion-content>
</ion-pane>
Strange result, because I supposed to have this:
Indeed, if I change my index.html with this code:
<body ng-app="mApp">
<ion-pane>
<ion-header-bar class="bar-stable">
<h1 class="title">Test</h1>
</ion-header-bar>
<ion-content>
<ion-nav-view>
</ion-nav-view>
</ion-content>
</ion-pane>
</body>
and my subview with just the word “test”, it working but can’t personalize the header on the subview.
So my question is what’s the best html structure for including pages using ui router with personalized header ?
Thanks