Why here i toggled the checkbox, it will be checked?
Why it is not controlled by the variable myVar1, i didn't set myVar1 to true on purpose to test.
I think it will always be unchecked, because i didn't set the myVar1 to true.
https://stackblitz.com/edit/angular-v4lsc6?file=src%2Fapp%2Fapp.component.html
component:
myVar1 = false;
template:
<input type="checkbox" [checked]="myVar1"/> myVar1 {{myVar1}}
myVar1to true, the checkbox is checked.