-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Change NgClass selector from [class] to [ng-class] #3498
Change NgClass selector from [class] to [ng-class] #3498
Conversation
ecc8e0d
to
0fa2ab1
Compare
BREAKING CHANGE: The selector for the CSSClass directive was changed from [class] to [ng-class]. The directive itself was renamed from CSSClass to NgClass
lifecycle: [LifecycleEvent.onCheck, LifecycleEvent.onDestroy], | ||
properties: ['rawClass: class'] | ||
properties: ['rawClass: ng-class'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
per our discussion yesterday this needs to bind both the class
and ng-class
example: <div class="foo" ng-class="exp">
In this case we have to preserve foo
so the binding should be.
properties: ['ngClass: ng-class', 'explicitClass: class' ]
We then have to merge the properties in explicitClass
with that of ngClass
(You can merge this PR as is, and follow up with another PR)
Please merge this PR, and then send a follow up PR to fix #3498 (comment) |
BREAKING CHANGE: The selector for the CSSClass directive was changed from [class] to [ng-class]. The directive itself was renamed from CSSClass to NgClass Closes angular#3498
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. |
No description provided.