Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="calendar">
- <thead>
- <tr>
- <th>M</th>
- <th>T</th>
- <th>W</th>
- <th>T</th>
- <th>F</th>
- <th>S</th>
- <th>S</th>
- </tr>
- </thead>
- <tbody ng-click="bindCellValue($event)">
- <tr ng-repeat="week in (days.length/7 | array)">
- <td ng-repeat="day in days.slice(7*$index, 7*$index + 7) track by $index">
- {{ day }}
- <i class="icon ion-checkmark answer-correct" ng-if="submitted && answers[i].correct"></i>
- <i class="icon ion-close answer-wrong" ng-if="submitted && !answers[i].correct"></i>
- </td>
- </tr>
- </tbody>
- </table>
- $scope.days = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, null, null, null, null ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement