I'm trying to get to get angular-timer working. So far I'm not having much luck.
I'm getting an Error: No language undefined. error message in the console. This refers to line 228 in humanize-duration.js:
throw new Error("No language " + dictionary + ".");
I can't see anything wrong with what I'm doing. I've included the files exactly as the introduction page
Any help with this would be greatly appreciated.
Have you add the language attribute to the tag?
<timer countdown="10" language="en" interval="1000" finish-callback="callbackTimer.finished()">{{minutes}}:{{seconds}}</timer>
There you can check which are supported: https://github.com/EvanHahn/HumanizeDuration.js#supported-languages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With