Skip to content

Instantly share code, notes, and snippets.

@bendrucker
Created May 19, 2014 17:20
Show Gist options
  • Save bendrucker/cf99aabfdeb2d972d91e to your computer and use it in GitHub Desktop.
Save bendrucker/cf99aabfdeb2d972d91e to your computer and use it in GitHub Desktop.
answer directive
<div ng-repeat="answer in question.answers">
<input type="text" ng-model="answer.text" />
<input type="checkbox" ng-model="answer.correct" />
</div>
<!-- -->
<answer ng-repeat="answer in answers" answer-model="answer"></answer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment