Answer the question
In order to leave comments, you need to log in
How to bind a checkbox to value from an object?
Good afternoon!
There is an object in the controller scope, let's call it interests. It looks something like this:
{
'sports' : 0,
'music' : 0
}
<div class="checkbox" ng-repeat="(key, value) in interests">
<ion-checkbox autocomplete="off" ng-model="value" value="value">{{ key }}</ion-checkbox>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question