-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
alpha.39: classes added to the original element removed by host class property #4583
Comments
This is important but not blocking. @adamdbradley says they have another way around this. |
@adamdbradley and @tbosch discussed this today. I believe that @tbosch said that this is the correct behavior. @tbosch can you verify? |
@tbosch I would be surprised if the new behaviour would be a correct one. I remember that we used to have logic in the compiler where classes set by host were merged with ones already present on a host element. IMO it made sense. What would be rationale for changing this merging behaviour? |
My initial thought was that treating
would clearly show that this is a special case, however, no one would use So I am adding the previous behavior back. I.e. host attribtues |
…with the host attributes Closes angular#4583
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In the below code, the
yellow
css class added to the original element is being removed by the directive'shost: { 'class': 'item' }
property.alpha.39 does remove the "yellow" css class from the element:
http://plnkr.co/edit/uWtEnSvK7GMSj3i3MCeG?p=preview
alpha.37 does not remove the "yellow" css class from the element:
http://plnkr.co/edit/ug3KaOTAjYOECLeLW0mQ?p=preview
The text was updated successfully, but these errors were encountered: