fragaria / angular-daterangepicker

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

Not working inside ngDialog #232

Closed rahmonov closed 7 years ago

rahmonov commented 7 years ago

It is working fine on other pages except for inside ngDialog.

Getting this error:

angular.js:13920 TypeError: el.daterangepicker is not a function

Any idea what could be the problem?

maximelafarie commented 7 years ago

Piece of code ?

sairam commented 7 years ago

happens when bootstrap daterangepicker is not added as a resolver. (happened with webpack config). i was using the older version of this. i had to add moment as an explicit dependency. via imports loader.

rahmonov commented 7 years ago

sorry about this, it was my bad. There was a script that tries to optimize script loading. It was messing things up.