-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Regression from 1.2.0rc1: ng-include 'bugs' href/ng-href in an anchor element #3793
Comments
I forget to tell. A basic workaround is to put ng-include on a child element, or directly as an element of the anchor:
|
This is caused by |
this should be easy to fix. since ngInclude is terminal, we should check if that could be used to prevent the attribute interpolation directive getting processed prematurely by tweaking priorities. |
I'm starting to think about reverting ngInclude back to what is was and possibly introducing a new feature where you can style the newly created container element for animation purposes. What do you think? Regarding this, terminal should be fine. @sdenier maybe test this out using ngView or ngRepeat first (since they both use terminal already)... |
Indeed, it works when I put a ng-repeat instead of the ng-include in the anchor element |
I submitted a PR, following @IgorMinar's suggestion. |
…t with interpolated attributes Closes angular#3793
BREAKING CHANGE: ngInclude's priority is now set to 1000 It's quite rare for anyone to depend on explicity directive priority, but if a custom directive that needs to run before ngInclude exists, it should have its priority checked and adjusted if needed. Closes angular#3793
BREAKING CHANGE: ngInclude's priority is now set to 1000 It's quite rare for anyone to depend on explicity directive priority, but if a custom directive that needs to run before ngInclude exists, it should have its priority checked and adjusted if needed. Closes angular#3793
When I put a
ng-include
directive directly inside ana
element, I get the following error in the console:TypeError: Object #<Comment> has no method 'setAttribute'
For example:
In the first case the element is not displayed as a link (as href is not set).
See Plunker http://plnkr.co/edit/LWa2asKqAxUYBtZL23YE?p=preview
At first I thought I was dealing with ng-include issues #3584 or #3573 . However, after testing this issue does not appear in 1.2.0rc1 and previous releases.
The text was updated successfully, but these errors were encountered: