-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-include regression not fully fixed by #5247 #6898
Comments
I spend a little time today looking at this issue and I haven't come up with a good solution yet. |
this is because the content for ngInclude is filled via this directive has priority -400 which means that it doesn't run because of the terminal directive. since this issue affects only ngInclude and not $compile I'm ok to push this out to be fixed post 1.3.0 |
@IgorMinar & @tbosch - It worries me that I believe this can be achieved with a lot of boilerplate code in the ngInclude function by converting it back to a |
This seems like an uncommon corner case. I don't think we are going to get round to fixing it in the near future. Assigning to the Ice Box for now. |
If I have a terminal directive on the same element as ng-include I cannot get access to element when linking occurs inside my directive.
In angular 1.2.1 -> 1.2.2 there was a regression with ng-include that caused this problem for all directives.
#5247 fixed the problem for directives with terminal: false
It is still a problem for directives with terminal: true.
example:
http://plnkr.co/edit/ehqS2VOFTvPLt5Z7iXs1
The text was updated successfully, but these errors were encountered: