Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <ul>
  2. <li ng-repeat="choice in choices" class="choices" ng-click="setSelection(choice)">{{choice}}</li>
  3. </ul>
  4.  
  5. var choiceSelection = {
  6. isSelected: false,
  7. userAnswers: [],
  8. setSelection: function(choice) {
  9. this.userAnswers.push(choice);
  10. console.log(this.userAnswers);
  11. }
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement