Just starting out with angular 6 and I'm attempting to toggle the mat-checkbox based on the API response.
However, I seem to be having trouble. All the checkboxes are showing as checked even when the API response is false.
<div class="col-sm-12" *ngFor="let data of summary">
<mat-checkbox [checked]="data?.BUY_NOW_STATUS" class="mat-checkbox-inner-container">Buy now</mat-checkbox>
</div>
The BUY_NOW_STATUS can either be 'true' or 'false'.
Any help in resolving this issue would be greatly appreciated.