Here is my HTML:
<ul>
<li ng:repeat="category in categoriesList">
<a>
<input type="checkbox" ng-init="isChecked = checkCategory(category)" ng-model='isChecked' checked="isChecked" ><font>
{{category.name}}</font></a>
</li>
<li>
<a ng-click='upadteCategoryDetails()'>Apply </a>
</li>
</ul>
while clicking apply need to update checked categories. If anyone know means please update me. Thanks in advance.
checkCategory()do? I totally agree with @alou, get rid ofng-initcreating a primitive in the repeated child scope