-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-if on ng-view #14002
Comments
This is possibly related to the new lazy transclusion optimization. |
I had a similar problem once (not with lazy transclusion, but same effect) and I ended up doing a |
I've tried to reproduce from the description, but it seems to work: http://plnkr.co/edit/NbRSdRaKEq6ohU6q3WgA?p=preview |
Sure does. Wish I could pinpoint the issue--but it was an easy fix. Thanks for looking into it |
You can still try to repro it, otherwise I'd say we close this issue. |
+1 We have same problem now, when trying migrate from 1.4 to 1.5 |
This is probably due to .run([$route, angular.noop]) There was a fix for this, but it got reverted because it broke some cases (especially in tests). |
@gkalpak thanks, This 'hack' works |
BTW, there is more context in #1213 (and issues mentioned in there). |
Not super concerning, as it seems to be VERY specific, but it seems that if you put an ng-if directive on an element CONTAINING your ng-view, in Angular 1.5 this now prevents ngRoute from properly routing the ng-view to your first template/controller.
My code:
What fixed it:
The text was updated successfully, but these errors were encountered: