javascript.js 718 B

123456789101112131415161718192021222324252627282930
  1. angular
  2. .module('mwl.calendar.docs')
  3. .controller('RecurringEventsCtrl', function(moment) {
  4. var vm = this;
  5. vm.events = [
  6. {
  7. title: 'Recurs monthly',
  8. type: 'warning',
  9. startsAt: moment().startOf('month').toDate(),
  10. recursOn: 'month'
  11. },
  12. {
  13. title: 'Recurs yearly',
  14. type: 'info',
  15. startsAt: moment().startOf('month').toDate(),
  16. recursOn: 'year'
  17. }
  18. ];
  19. // Looking for weekly recurring events?
  20. // See here: https://github.com/mattlewis92/angular-bootstrap-calendar/issues/127#issuecomment-136022090
  21. vm.calendarView = 'month';
  22. vm.viewDate = moment().startOf('month').toDate();
  23. vm.isCellOpen = true;
  24. });