Top "Ng-class" questions

The angularjs ngClass directive allows you to set CSS classes on an HTML element, dynamically, by databinding an expression that represents all classes to be added.

ng-Class - multiple conditions and classes

I have been looking for examples of multiple conditions in ng-class but I can't find using the same terminology. Here …

javascript angularjs ng-class
How to use if-else condition with [ngClass] in angular 7?

I want to use multiple classes inside Angular [ngClass]. I have two classes, It should work accordingly as per the …

angular ng-class
Angular 2 how do I use a variable for the value of ngClass

I want to use a variable for the value of ngClass that will be added to the class list. My …

angular ng-class
ionic 3 dynamic class (ngClass)

So I am pretty new to this. I using Ionic 3 and trying to dynamically choose which class to use based …

angular ionic-framework ionic3 ng-class
Template parse errors: Can't bind to 'ng-class' since it isn't a known native property in Angular 2

I am trying to apply CSS style conditionally on an img attribute based on the value of a boolean 'isLoginPage' …

parsing angular ng-class
ng-class will not trigger on custom directive

I am currently developing a slide menu directive for AngularJS. The javascript consists of three types of directives: the directives …

javascript angularjs angularjs-directive ng-class
ng-class validation is not working in AngularJS

I tried to put green background if it is edited and valid. But, even for invalid also it is showing …

javascript angularjs ng-class
ng-class if object exists angularjs

How can we activate class if object exists. i have a json array where i need to activate a class …

angularjs ng-class angular-directive
Can you use variables with NG-CLASS active link with Angular?

I want to use a loop to create my navigation Here is my code I keep getting an error saying …

javascript angularjs ng-class
using class and ng-class together

Here I am facing a problem when applying regular element class and ng-class together. In my code ng-class css property …

html angularjs ng-repeat ng-class