-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: beta6 to rc2 - scope problem #3473
Comments
Looks like trouble in rc2 with this line:
It's now showing block in both cases - |
I am having the same problem. |
I think you have to use ng-if=="user" |
Me too - looks like |
Here is my bug: http://codepen.io/piernik/pen/NPQqgG There is a bug I think |
Directives copy their parent's scope in the OOP fashion where once they're instantiated they don't automatically update. Does using |
@perrygovier no. Only remove of |
@perrygovier have You looked at my codepen? There is bug for sure. Looks like navbar is refreshing scope too early - when final scope isn't set yet. |
@piernik I don't think there's a bug in ionic,It all works for me here: http://codepen.io/Yuripetusko/pen/MYNVxz |
@Yuripetusko even in Your codepen it's not working well. |
@piernik Yes you are right! I can see it now. I updated code a little bit so it's cleaner for ionic developers to see the issue. http://codepen.io/Yuripetusko/pen/MYNVxz Basically if you go to list, then click first item, then click second item, and then click first one again the title doesn't update even though scope value is definitely updated |
@tigrus As for the showing and hiding a button in the nav-bar, can you fork this codepen and replicate the issue: http://codepen.io/adamdbradley/pen/azereK?editors=101 |
@adamdbradley have You looked at mine and @Yuripetusko's examples? (http://codepen.io/piernik/pen/NPQqgG and http://codepen.io/Yuripetusko/pen/MYNVxz) |
@piernik looking at your codepen, it should't even work. |
@mhartington nested view are common thing in ui-router.
Please answer my question - should I rewrite my app or can You fix the problem? Edit: I can modify parent's navbar in child controller so in nested view I get gid of navbar. Hope it works. |
Right, nesting views is common with ui-router, but for a mobile app paradigm it's not really advised unless you're making an abstract state. You should probably rewrite the structure and not use a nested ion-nav-view |
I see that in router I can't use
|
You can use controllers on abstract states. @piernik please post about this in the forum, it's not really relevant to the issue. |
Played with codepen. Working: Not working: If we move I think, ionic must throw warning about |
Type: bug
Platform: all
I have code like this:
Line:
<ion-nav-buttons side="right" class="no-top" ng-if="user">
not works.
Line:
<ion-item nav-clear menu-close href="#/logout" ng-if="user">
works.
In beta6 both line works. In rc2 - first line not working.
{{user.balance}}
- works when removing if statement.Where to dig?
The text was updated successfully, but these errors were encountered: