Skip to content
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

Conversation

pkozlowski-opensource
Copy link
Member

No description provided.

BREAKING CHANGE:

The selector for the CSSClass directive was changed
from [class] to [ng-class]. The directive itself was
renamed from CSSClass to NgClass
@naomiblack naomiblack added this to the alpha-35 milestone Aug 6, 2015
@naomiblack naomiblack added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 6, 2015
@mhevery mhevery added pr_state: LGTM action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker pr_state: LGTM labels Aug 6, 2015
lifecycle: [LifecycleEvent.onCheck, LifecycleEvent.onDestroy],
properties: ['rawClass: class']
properties: ['rawClass: ng-class']
Copy link
Contributor

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)

@mhevery mhevery added pr_state: LGTM action: merge The PR is ready for merge by the caretaker labels Aug 6, 2015
@mhevery
Copy link
Contributor

mhevery commented Aug 6, 2015

Please merge this PR, and then send a follow up PR to fix #3498 (comment)

goderbauer pushed a commit to goderbauer/angular that referenced this pull request Aug 15, 2015
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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants