siddii / angular-timer

re-usable/inter-operable AngularJS timer directive ⛺
http://siddii.github.io/angular-timer/
MIT License
792 stars 938 forks source link

Getting `humanizeDuration is not defined` error #269

Open suamorales opened 8 years ago

suamorales commented 8 years ago

I've included humanizeDuration dependency script but I'm still seeing the humanizeDuration is not defined error. I'm using webpack and installed the dependency with bower

connormlewis commented 8 years ago

When you install with bower, it installs the dependency humanize-duration, but the example site never says that you need to link the script, which you do.

Add <script src="/bower_components/humanize-duration/humanize-duration.js" charset="utf-8"></script> or something similar for how your project is set up to fix that issue. And make sure that it's linked before the angular-timer file.

ghost commented 7 years ago

214 Same problem as here

meneimoh commented 6 years ago

I'd have been done writing my own custom directive if I didn't stumble on this. Poor documentation, poor everything!!! So many assumptions made.