-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feature : allow dynamic ion-nav-view name #1526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
allow the name attribute to be evaluated as an angularjs expression Signed-off-by: Justin Noel <github@calendee.com>
|
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 github@calendee.com