Repository navigation
Conversation
218735a to
33fca29
Compare
|
Deployed adev-preview for b278240 to: https://ng-dev-previews-fw--pr-angular-angular-59240-adev-prev-ft7l9x4g.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
b1168ed to
16a2459
Compare
16a2459 to
a00baf5
Compare
There was a problem hiding this comment.
optional: maybe add a set example? Otherwise it's not super clear what ngClass can do that [class] can't
There was a problem hiding this comment.
I've added the Set to the list of possibilities above. Having an example with Set would be a bit more complex as we can't create them in the template,
This commit introduces an update to the official recommendations when it comes to class & styles bindings. `[class]` & `[style]` bindings are now recommended for basic uses cases. `[ngClass]` and `[ngStyle]` allow more advanced bindings (like space separated keys) or keys with units (for `ngStyle`) which are not supported by the native bindings. They still require the dedicated directives.
a00baf5 to
b278240
Compare
|
This PR was merged into the repository by commit d797c5c. The changes were merged into the following branches: main, 19.0.x, 19.1.x |
This commit introduces an update to the official recommendations when it comes to class & styles bindings. `[class]` & `[style]` bindings are now recommended for basic uses cases. `[ngClass]` and `[ngStyle]` allow more advanced bindings (like space separated keys) or keys with units (for `ngStyle`) which are not supported by the native bindings. They still require the dedicated directives. PR Close #59240
This commit introduces an update to the official recommendations when it comes to class & styles bindings. `[class]` & `[style]` bindings are now recommended for basic uses cases. `[ngClass]` and `[ngStyle]` allow more advanced bindings (like space separated keys) or keys with units (for `ngStyle`) which are not supported by the native bindings. They still require the dedicated directives. PR Close #59240
This commit introduces an update to the official recommendations when it comes to class & styles bindings. `[class]` & `[style]` bindings are now recommended for basic uses cases. `[ngClass]` and `[ngStyle]` allow more advanced bindings (like space separated keys) or keys with units (for `ngStyle`) which are not supported by the native bindings. They still require the dedicated directives. PR Close angular#59240
|
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 commit introduces an update to the official recommendations when it comes to class & styles bindings.
[class]&[style]bindings are now recommended for basic uses cases.[ngClass]and[ngStyle]allow more advanced bindings (like space separated keys) or keys with units (forngStyle) which are not supported by the native bindings. They still require the dedicated directives.