feat(CSSClass): add support for string and array expresions#2664
feat(CSSClass): add support for string and array expresions#2664pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
Conversation
There was a problem hiding this comment.
add return type : void everywhere it's applicable
There was a problem hiding this comment.
OK, will do!
|
@vicb should this otherwise have the pr_state LGTM from you or is there more significant review and fixing needed? |
There was a problem hiding this comment.
v.split(' ') (BTW you can now use /.../g - g flag is mandatory to transpile to Dart)
There was a problem hiding this comment.
I mean using String.split() here and get rid of the RegExp.
There was a problem hiding this comment.
Oh, right. I see! Will do asap!
|
Added LGTM and more feedback |
96e5d9c to
db7d5d4
Compare
|
Adding to m.28 since the associated issue is in m.28 |
There was a problem hiding this comment.
diff.wrapped instanceof IterableChanges ?
There was a problem hiding this comment.
Not sure...
There was a problem hiding this comment.
Why ? the methods you call below expect that.
There was a problem hiding this comment.
IMO it doesn't change much, I've got no objections changing this. Will do.
|
I have added more comments.
|
|
@vicb see my comments above. |
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
db7d5d4 to
2b93bcc
Compare
|
CLAs look good, thanks! |
|
@vicb I've addressed all your latest comments apart from removing |
|
If this is ready to be merged I can fixup the commit to remove the RegExp before merging into master |
|
@vicb if you know how to remove RegExp, feel free to do so while merging. Would be much appreciated! |
|
replaced by #2720 |
|
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. |
This adds support for lists and strings arguments to the
[class]directive. I've got few improvements on my mind to the initial implementation, but at least this is the starting point that we can improve upon.Now, I would like to argue that we should rename this class to
NgClassand make it match the[ng-class]selector. Here are my arguments:classattributesCloses #2025