ngclass else

Solutions on MaxInterview for ngclass else by the best coders in the world

showing results for - "ngclass else"
Mateo
26 Feb 2016
1<p class="{{condition ? 'checked' : 'unchecked'}}">
2<!-- or -->
3<p [ngClass]="condition ? 'checked' : 'unchecked'">
4<!--or -->
5<p [ngClass]="[condition ? 'checked' : 'unchecked']">