javascript.js 629 B

123456789101112131415161718192021222324252627
  1. angular
  2. .module('mwl.calendar.docs')
  3. .controller('BadgeTotalCtrl', function(moment) {
  4. var vm = this;
  5. vm.events = [
  6. {
  7. title: 'Increments the badge total on the day cell',
  8. type: 'warning',
  9. startsAt: moment().startOf('month').toDate(),
  10. incrementsBadgeTotal: true
  11. },
  12. {
  13. title: 'Does not increment the badge total ',
  14. type: 'info',
  15. startsAt: moment().startOf('month').toDate(),
  16. incrementsBadgeTotal: false
  17. }
  18. ];
  19. vm.calendarView = 'month';
  20. vm.viewDate = moment().startOf('month').toDate();
  21. vm.isCellOpen = true;
  22. });