Hello everyone,
Iam doing a simple app using a list of checkboxes.
Here is my template:
<ion-list>
<ion-item ng-repeat="configList in configLists">
<label class="checkbox">
<input type="checkbox" checked="configList.selected" ng-click="addToApiList(configList.name)">
</label>
{{configList.name}}
</ion-item>
</ion-list>
So this list is ok and the names are ok, but since i try to set the ‘checked’ value by hand, it turns that all my checkboxes are true.
I tried this, and this also gives me all checkbox true:
<input type="checkbox" checked="" ng-click="addToApiList(configList.name)">
Maybe Iam doing something wrong, but it seem I can not set the checked value.
How can I do to initialise my ‘checked’ values when i create my list ?
Thank you