3. Useful Built In Angular Directives - ngnam/angular-up-and-running GitHub Wiki

Phân biệt Directives and Components

Built-In Attribute Directives

  • NgClass
  • NgStyle
  • Cú pháp ràng buộc giữa Class và Style

Built-In Structural Directives

  • NgIf
  • NgFor
  • NgSwitch
  • Nhiều Structural Directives lồng nhau

Phần kết luận

Thực hành