ng class in angular
[ngClass]="{'text-success':person.country === 'UK'}"
ng class in angular
[ngClass]="{'text-success':person.country === 'UK'}"
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>
ng class in angular
[ngClass]="{'text-success':person.country === 'UK'}"
ng class in angular
[class.my_class] = "step === 'step1'"
ng class project
ngDoCheck()
ng class in angular
<div *ngFor="let item of items">{{item}}</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us