feature : allow dynamic ion-nav-view name#1526
Conversation
allow the name attribute to be evaluated as an angularjs expression Signed-off-by: Justin Noel <[email protected]>
|
Hey @ajoslin can you take a look? I don't have access to shippable to see why it's failing. |
|
This won't work because it's trying to evaluate the name. It will treat Instead, we would have to interpolate the name: Unfortunately, we cannot add this feature to the current nav system. Many things rely upon the nav view's name not changing. In the future? Perhaps. |
|
@ajoslin Ahhh.. I overlooked that aspect. Would you consider something like this where Then, The directive would eval Then, the directive would support either of these : or If so, I can submit another pull request. |
|
Hi, I've created my own directive to compile in the ion-nav-view with the name I want. and then in my html; I presume this will be okay if myCtrl.tabs is initialised once and never touched? Cheers |
|
@brianfoody awesome, thanks for sharing! I'm gonna give this a try when I can, looks brilliant... |
|
@brianfoody brilliant! For me it makes sense to change |
|
I tried to write out the entire HTML by updating the text inside the $element.html() function to include the whole segment from '<ion-tabs>' to '</ion-tabs>' instead of just the nav-view inside the ion-tab and I found it works perfectly well(even the history functionality seems to be working perfectly) without any issues so far. I am sure it needs a lot more testing, but if it is being initialized just once, it seems to work just fine. |
|
Thanks guys, you help me a lot! |
allow the name attribute to be evaluated as an angularjs expression
Issue #1503
Signed-off-by: Justin Noel [email protected]