I have a logic like i have four checkboxes which should behave as existed code. Logic is working. But i do check and uncheck using the syntax.

```
 angular.element(document.querySelector('#c_'+j)).attr('checked', true);

 angular.element(document.querySelector('#c_'+j)).attr('checked', false); 

```

which is not reflected in the respective checkbox element's model value. As you can check the attached screen shot. First three box got checked but it shows 'true' for actual clicked element rest remains 'false'. I need the updated model values. Anyone can help on this !

Here is the working example <https://plnkr.co/edit/zA5V9gc6jTpPq3pIuvC8?p=preview>

[![enter image description here](https://i.stack.imgur.com/qxFH3.png)](https://i.stack.imgur.com/qxFH3.png)