I'm working with Angular.js and Ionic now and I have a view that looks like this:
<ion-view view-title="My list">
<ion-content>
<!-- checkboxes with items -->
<div>
<ul class="list">
<li class="item item-checkbox" ng-repeat="myItem in myItems">
<label class="checkbox">
<input type="checkbox" ng-model="myItem.checked">
</label>
{{myItem.Name}}
</li>
</ul>
</div>
</ion-content>
</ion-view>
And now I want to add a second header which has to be under the main header with the title My list (ion-view).
I found out when I add such code (as below) between the opening ion-content and the div which contains the list
<div class="bar bar-header bar-positive>
...
</div>
the header also does scroll. I don't want that. The header has to be placed fix under the main header.
That is because of the ion-content element. But when I declare the secondary header outside of the ionic-content, I can't see the header.
Maybe you know some advices for me. Thanks.