Angular2 Doing an else with ngClass

Source: https://stackoverflow.com/questions/38203030/angular2-doing-an-else-with-ngclass/38203292


Indeed
<p class="{{condition ? 'checked' : 'unchecked'}}">
or
<p [ngClass]="condition ? 'checked' : 'unchecked'">
or
<p [ngClass]="[condition ? 'checked' : 'unchecked']">

Không có nhận xét nào:

SO SÁNH 5 “ĐỨA CON AI” HOT NHẤT 2025

 https://www.facebook.com/AInews2023/posts/pfbid031usNyqqvstcDbFaRptkJmG3ReiTUUmGxGE5fp5PqPKqaseVRqVsoypKNS5CBRzNJl?__cft__[0]=AZUVx56Rvbt3n...