here is the thing
<ion-tabs ng-controller="LoginCtrl">
<!-- News Tab -->
<ion-tab href="#/tabs/news">
<ion-nav-view name="tab-news"></ion-nav-view>
</ion-tab>
<!-- Dashboard Tab -->
<ion-tab href="#/tabs/promotions">
<ion-nav-view name="tab-promotions"></ion-nav-view>
</ion-tab>
<!-- Account Tab -->
<ion-tab href="#/tabs/signup">
<ion-nav-view name="signup"></ion-nav-view>
</ion-tab>
</ion-tabs>
this is a mobile app, and this is the abstract view, I have there the LoginCtrl attached because I need it everywhere, but also, I need another controller to be present everywhere. I need it present everywhere because this is an streaming music app, so the music must be in every view with out stopping. So, what options do I have ? the LoginCtrl is already defined there, I need to set up another controller named AudioCtrl
.
You can add any number of controllers to your html, Just add some more divs to to this like this:
<div ng-controller="LoginCtrl">
<ion-tabs ng-controller="AudioCtrl">
<!-- News Tab -->
<ion-tab href="#/tabs/news">
<ion-nav-view name="tab-news"></ion-nav-view>
</ion-tab>
<!-- Dashboard Tab -->
<ion-tab href="#/tabs/promotions">
<ion-nav-view name="tab-promotions"></ion-nav-view>
</ion-tab>
<!-- Account Tab -->
<ion-tab href="#/tabs/signup">
<ion-nav-view name="signup"></ion-nav-view>
</ion-tab>
</ion-tabs>
</div>