how to make checkbox checked dynamically in angular code example
Example: angular 6 checkbox checked dynamically
<input type="checkbox" value="item.id" [attr.checked]="fooData.mode === item.id ? true : null" />
<input type="checkbox" value="item.id" [attr.checked]="fooData.mode === item.id ? true : null" />