Dynamic menu


#1

Hello,

I want to make a dynamic menu like bellow, but {{tab.name}} deoes not get replaced with the value from the controler.

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

any suggestions?

thanks


Dynamically set view name in
#2

Seems that this isn’t possible with ion-nav-view. I’ve open up an issue for this.


#3

If this worked, how would you target in the route config?


#4

FYI : I’ve submitted a pull request for this because I suddenly found myself needing it too.


#5

cool thanks!. To answer the previous question I would just set up route url with parameter


#6

FYI : I’ve created a project that uses this modified ionNavView directive