Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngClass): handle multi-class definitions as an element of an array #10651

Closed
wants to merge 1 commit into from

Conversation

lgalfaso
Copy link
Contributor

@lgalfaso lgalfaso commented Jan 6, 2015

Handles multi-class definition as an element of an array

Closes #8578

Handles multi-class definition as an element of an array

Closes angular#8578
@pkozlowski-opensource
Copy link
Member

@lgalfaso hmm, I've got the impression that it won't work in all the case - since you can have expressions as part of the ngClass array you can imagine having spaces being part of those expressions - one contrived example: <div ng-class="['A', 'B', dynamic('C D')]"></div>.

Didn't look deeper, but if you believe that this works for this case as well, we should add more tests.

@pkozlowski-opensource
Copy link
Member

Oh, wait, on the directive level we are going to have already an array of strings, right?

@pkozlowski-opensource
Copy link
Member

@lgalfaso sorry for the noise. LGTM. Merging.

@lgalfaso lgalfaso closed this in e1132f5 Jan 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngClass array syntax behavior not according to documentation
3 participants