fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

Daterangepicker doesnt seem to get initialized (el.daterangepicker is not a function) #294

Closed craigdanj closed 5 years ago

craigdanj commented 6 years ago

I've run into this issue and was wondering if anyone else had this problem. We've identified certain places in our webapp where the daterangepicker doesnt get initialised for some reason.

TypeError: el.daterangepicker is not a function at _init (angular-daterangepicker.js:140) at Object.link (angular-daterangepicker.js:159) at angular.js:1346 at angular.js:10420 at invokeLinkFn (angular.js:10426) at nodeLinkFn (angular.js:9815) at compositeLinkFn (angular.js:9055) at compositeLinkFn (angular.js:9058) at compositeLinkFn (angular.js:9058) at compositeLinkFn (angular.js:9058) ""

barryajones commented 5 years ago

@craigdanj did you get this resolved? I had this working a few months ago on a new project I'm working. I finally got round to trying to finish up the project and I am now also getting the same issue when I try to initialize the daterangerpicker.

craigdanj commented 5 years ago

@barryajones It wasn't working the last time I checked. I'm currently not working on that project now though.

kettunen commented 5 years ago

This happens, if you don't include bootstrap-daterangepicker/daterangepicker.js in your app.