Angular Doing an else with ngClass

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

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:

UseQuery React for Efficient Data Fetching

 https://daily.dev/blog/usequery-react-for-efficient-data-fetching If you're diving into React and looking to manage data fetching effic...