Ion-nav-view dynamic name


#1

Hello,

My tabs are stored in one of my scope’s objects.

My code is :

<ion-tab ng-repeat="tab in tabs" href="#/tab{{ tab.url }}" title="{{ tab.title }}" icon="{{ tab.icon }}">
    <ion-nav-view name="{{ tab.state }}"></ion-nav-view>
</ion-tab>

It seems that the name attribute ({{ tab.state }}) is not evaluated as a variable, but as a string. If I set it to “home” (one of my tab.state is “home”), it works perfectly.

So, how can I use a variable for the name attribute of my ion-nav-view ?

Thanks,

kinkaz


#2

me too. did you ever resolve this?


#3

Hey there,

No, unfortunately, I never resolved this issue.