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:

ui-ux-pro-max-skill

 https://github.com/nextlevelbuilder/ui-ux-pro-max-skill Using CLI (Recommended) # Install CLI globally npm install -g uipro-cli # Go to...