Answers for "ng class in angular"

0

ng class in angular

[ngClass]="{'text-success':person.country === 'UK'}"
Posted by: Guest on August-08-2020
6

angular ngclass

content_copy
      
      <some-element [ngClass]="'first second'">...</some-element>

<some-element [ngClass]="['first', 'second']">...</some-element>

<some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>

<some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>

<some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
Posted by: Guest on March-14-2020
0

ng class in angular

[ngClass]="{'text-success':person.country === 'UK'}"
Posted by: Guest on May-01-2021
0

ng class in angular

[class.my_class] = "step === 'step1'"
Posted by: Guest on April-27-2021
-2

ng class project

ngDoCheck()
Posted by: Guest on June-24-2020
-1

ng class in angular

<div *ngFor="let item of items">{{item}}</div>
Posted by: Guest on May-01-2021

Browse Popular Code Answers by Language