Wednesday, 31 March 2021

NgClass binding from TS

  ANgular ngclass binding

<tr  *ngFor="let dm of extradomain ; let i = indexlet first = first;let last = last;" [ngClass]="bg_successfirst, bg_primary: !first, bg_danger : dm.domainStatus }">


in the above code for first tr bg_success class will applay. if it is last or not first bg_primary will apply.

No comments:

Post a Comment

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...