Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. mainApp.directive('scoreDisplay',[
  2. function() {
  3. return {
  4. scope: {
  5. goal_1: 0,
  6. goal_2: 0,
  7. goal_3: 0,
  8. goal_4: 0,
  9. goal_5: 0,
  10. goal_6: 0,
  11. goal_7: 0
  12. },
  13. restrict: 'E',
  14. templateUrl:'templates/directive-score-display-template.html',
  15. link: function(scope,element,attrs){}
  16. };
  17. }
  18.  
  19. <score-display></score-display>
  20.  
  21. <table>
  22. <tr>
  23. <td ng-model='goal_1'>1</td>
  24. <td ng-model='goal_2'>2</td>
  25. <td ng-model='goal_3'>3</td>
  26. <td ng-model='goal_4'>4</td>
  27. <td ng-model='goal_5'>5</td>
  28. <td ng-model='goal_6'>6</td>
  29. <td ng-model='goal_7'>7</td>
  30. </tr>
  31. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement