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 369 forks source link

templates not found error #619

Closed deepaucksharma closed 7 years ago

deepaucksharma commented 7 years ago

After following the steps mentioned, when I try to use the mwl calendar directive I get following error -

Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarDayView.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2Fcalendar.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarHourList.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarMonthCell.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarMonthView.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarMonthCellEvents.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarSlideBox.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarYearView.html&p1=404&p2=Not%20Found The requested information does not exist Error: [$compile:tpload] http://errors.angularjs.org/1.4.9/$compile/tpload?p0=mwl%2FcalendarWeekView.html&p1=404&p2=Not%20Found

burtek commented 7 years ago

Looks like you did not put templates where the directive expects them to be. How did you install mwl-calendar?

deepaucksharma commented 7 years ago

added it to bower dependences, the templates are under the dist folder in components folder. But the directive expects it at some other location.

burtek commented 7 years ago

Well... They should be in src/. That's how it should look like after bower install --save angular-bootstrap-calendar:

image

mattlewis92 commented 7 years ago

It sounds like you're including the wrong bundle that doesn't have the templates included, make sure you're including the one ending in -tpls.js: https://github.com/mattlewis92/angular-bootstrap-calendar/blob/master/dist/js/angular-bootstrap-calendar-tpls.js