Angular #14 - Attribute Directives [ngStyle]

Опубликовано: 13 Май 2026
на канале: Let's Build With Code
74
3

Click to watch Angular Playlist :    • Angular  

Attribute Directives
Attribute directives listen to and modify the behavior of other HTML elements, attributes, properties, and components.
Many NgModules such as the RouterModule and the FormsModule define their own attribute directives. The most common attribute directives are as follows:

Common Directives Details
NgClass : Adds and removes a set of CSS classes.
NgStyle : Adds and removes a set of HTML styles.
NgModel : Adds two-way data binding to an HTML form element.


Links
Official Documentation : https://angular.io/docs
Official TypeScript Documentation : https://www.typescriptlang.org/docs/