mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
95c0e51b6e
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