Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Ion-nav-view dynamic name

$
0
0

@kinkaz wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>