ngClass  is a directive in Angular  that adds and removes CSS classes on an HTML element. In this article, we are talking about ngClass  in Angular only, not ng-class  in angular.js.

  • Prerequisites – What is Property Binding?
  • What is ngClass in Angular? The Basics
  • How to Use ngClass in Angular
  • How to Use Angular ngClass with a Simple Condition
  • How to Work with Object Literals and ngClass
  • Angular ngClass and Complex Conditions
  • [ngClass] vs [class] in Angular

#angular #css #javascript #web-development

How to Add Conditional CSS Classes with Angular NgClass
3.35 GEEK