Skip to content

Instantly share code, notes, and snippets.

@skinofstars
Last active August 29, 2015 14:01
Show Gist options
  • Save skinofstars/73ffab24b9e57f83ece3 to your computer and use it in GitHub Desktop.
Save skinofstars/73ffab24b9e57f83ece3 to your computer and use it in GitHub Desktop.
ng bind across models
{
groupy: {
invited: {
eventOne: true,
eventTwo: false
},
responded: {
eventOne: false,
eventTwo: false
}
}
}
<div ng-repeat="(key, val) in groupy.invited">
<input type="checkbox" name="{{ key }}" ng-checked="groupy.responded[key]" ng-model="groupy.responded[key]"> Attending {{ key }}?
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment