Indeed
<p class="{{condition ? 'checked' : 'unchecked'}}">
or
<p [ngClass]="condition ? 'checked' : 'unchecked'">
or
<p [ngClass]="[condition ? 'checked' : 'unchecked']">
https://daily.dev/blog/usequery-react-for-efficient-data-fetching If you're diving into React and looking to manage data fetching effic...
Không có nhận xét nào:
Đăng nhận xét