angular-timer icon indicating copy to clipboard operation
angular-timer copied to clipboard

Getting `humanizeDuration is not defined` error

Open suamorales opened this issue 8 years ago • 3 comments

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

suamorales avatar Jul 14 '16 20:07 suamorales

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.

connormlewis avatar Aug 30 '16 01:08 connormlewis

#214 Same problem as here

ghost avatar Apr 21 '17 11:04 ghost

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.

meneimoh avatar Jan 09 '18 00:01 meneimoh