I have a form with a few checkboxes and form is being processed via angularjs. I have no knowledge about angular however I read about it to find a solution to my problem. I want a checkbox to be checked automatically when form is load. When I look at the codes below I don't understand anything so I need your help.
HTML: (I think this dynamically generates a few < li > options in the form GUI)
<ul class="sublist" style="padding-top:{{ $index * 38}}px;" ng-init="index=$index" ng-if="forActive == k" ng-repeat="(k, v) in forData">
<li class="selected" ng-repeat="val in v">
<a href="" title="">{{ val }} </a>
<input value="{{ k }} > {{ val }}" type="checkbox" class="flc" ng-click="addForValue(k + ' > ' + val)" />
</li>
</ul>
Content of array is this in angular: $scope.design.fors = [Adults > Men,Adults > Plus]
For example, When form is load, checkbox with value = Adults > Men shall be checked.
Thanks in advance