I have 4 check boxes that need to be dynamically displayed based on the value retrieved from my JSON. The JSON will only contain one checkbox name, and that specific checkbox should be shown to the user as checked. How can I achieve this functionality? Below is my material checkbox code:
<div fxLayout="row wrap" class="py-8" fxLayoutAlign="space-evenly">
<mat-checkbox>Fragile</mat-checkbox>
<mat-checkbox>Flyer</mat-checkbox>
<mat-checkbox>Time Stipulated</mat-checkbox>
<mat-checkbox>Gift Wrapped</mat-checkbox>
</div>
Here is a snippet from my JSON:
https://i.sstatic.net/Vsgfm.jpg
For example, if the JSON data contains "Flyer" as the checkbox name, only the "Flyer" checkbox will be displayed to the user as checked, while the others will be hidden.