input checkbox angular checked dynamically 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" />