I have a variable that is either 1 or 0 called
How do I make the checkbox checked/unchecked depending on the value of . 1 = Checked & 2 = Unchecked. I would prefer an Angular solution that doesn't need any javascript/typescript.
Something like this would be perfect:
<input type="checkbox" checked=" == 1">
Aucun commentaire:
Enregistrer un commentaire