the HTML specs do not require browsers preserve the special attributes such as checked.(The presense of them means true and absense means false) This prevents the angular compiler from correctly retrieving the binding expression. To solve this problem, we introduce ng:checked.
<ANY ng:checked="template"> ... </ANY>
template – {template} –
any string which can contain '{{}}' markup.
Check me to check both: <input type="checkbox" name="master"><br/> <input id="checkSlave" type="checkbox" ng:checked="{{master}}">
it('should check both checkBoxes', function() { expect(element('.doc-example-live #checkSlave').attr('checked')).toBeFalsy(); input('master').check(); expect(element('.doc-example-live #checkSlave').attr('checked')).toBeTruthy(); });