mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 367 forks source link

The value passed to calendar-view is not set #29

Closed jessica521 closed 9 years ago

jessica521 commented 9 years ago

Hey Matt,

I'm getting the error message "The value passed to calendar-view is not set" where the calendar should be located. Calendar-view="calendarView" in the index.html file, so I'm not sure why it is showing that error. I have tried changing it to "month" or "year" but it doesn't change anything.

If you have a fix for this I would greatly appreciate it! I can also supply more information if that is needed. Thanks!

mattlewis92 commented 9 years ago

Are you setting $scope.calendarView = 'year' in the controller? Have a look at the source of the demo for a working implementation: http://mattlewis92.github.io/angular-bootstrap-calendar/docs/scripts/controllers/main.js

jessica521 commented 9 years ago

After fiddling around with it for a little bit I got it to work! I misunderstood the direction to add this line angular.module('myModule', ['mwl.calendar']); to the app, so that was causing some issues. Thanks for your help!

mattlewis92 commented 9 years ago

Glad you got it working :)