NgSwitch

<ng-container [ngSwitch]="row.promotion_type">
<span *ngSwitchCase="0">Coupon</span>
<span *ngSwitchCase="1">Instore</span>
<span *ngSwitchCase="2">Message</span>
</ng-container>

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...