X Tutup
Skip to content

feat(NgStyle): add new NgStyle directive#2665

Closed
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:ngstyle
Closed

feat(NgStyle): add new NgStyle directive#2665
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:ngstyle

Conversation

@pkozlowski-opensource
Copy link
Copy Markdown
Member

Review on Reviewable

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the pipe concept yet, but does keyValDiff also support Arrays or only Maps?

(This was the Angular 1.0 behavior)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matanlurey nope, keyValDiff works only with the Map-like objects. But reading your comment I'm getting an impression that you were thinking about ngClass, since I can see only maps being supported in ng1 (both JS and Dart)

If you are interested in the ngClass equivalent, the relevant PR is this: #2664)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, ngStyle in ng1 does support expressions (not only maps).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(But only expressions that evaluate to maps, so it's not far off 😃)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this is exactly what this version does as well :-)

@naomiblack naomiblack added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jun 23, 2015
@naomiblack naomiblack added this to the alpha-29 milestone Jun 23, 2015
@vsavkin vsavkin self-assigned this Jun 23, 2015
@pkozlowski-opensource pkozlowski-opensource force-pushed the ngstyle branch 2 times, most recently from 78bc76d to e916b06 Compare June 23, 2015 11:36
@pkozlowski-opensource
Copy link
Copy Markdown
Member Author

@naomiblack cleaned up code and addressed comments. This needs another round of review (I can see that @vsavkin is already assigned and he knows this part best)

@pkozlowski-opensource pkozlowski-opensource added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jun 23, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be commented out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, good catch!

@vsavkin vsavkin added pr_state: LGTM action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jun 25, 2015
jimthedev pushed a commit to jimthedev/angular that referenced this pull request Jun 30, 2015
@pkozlowski-opensource pkozlowski-opensource deleted the ngstyle branch July 1, 2015 14:37
@angular-automatic-lock-bot
Copy link
Copy Markdown

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: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews 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.

6 participants

X Tutup