-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-include breaks ng-click #4354
Comments
The priority of |
See this comment: #3584 (comment). Number 4 is the important item here. |
Ah i see… Seems kind of logical that since the element is getting removed, click may not work. But it's kind of strange, that is breaks the existing behavior. In 1.1.5 it works like I previously expected. (This was the reason for the ticket, since it broke while updating…) – So even thought it's understandable behavior: Is this intended? |
this is fixed in master. check out http://plnkr.co/edit/qUnwgX?p=preview |
Seems to be not working again as my app with AngularJS 1.5.0 ng-click doesn't work on items with ng-inlcude as an attribute, just like in original post. Test:
|
@waterplea, I couldn't reproduce it. If you are still seeing a problem in |
Thanks gkalpak, looks like some sort of scope issue on my side. |
I've had this issue too, with 1.5.0-rc.0... ng-click on the same element as ng-include of an SVG. The click was changing the value of a template-local variable. The variable was changed, but that change couldn't be seen by the rest of the template... a scoping issue like @waterplea had. |
Lol, years later, this is still a thing. For those who stumble upon this, I recommend wrapping the element with the |
Having ng-include and ng-click on the same element, kills the ng-click-handler
See: http://plnkr.co/edit/nEIi3U
The text was updated successfully, but these errors were encountered: