uhlryk / angular-dynamic-number

Highly customizable angular directive for numbers
64 stars 32 forks source link

Minification error: not using explicit annotation #36

Closed cfragout closed 7 years ago

cfragout commented 8 years ago

Hi! I found the following error when trying to use the plugin (v 2.1.0) in my app (minified): Error: [$injector:strictdi] function(t) is not using explicit annotation and cannot be invoked in strict mode

In order to fix this, I've just changed line 644 to look as follows: .filter('awnum', ['dynamicNumberStrategy', function(dynamicNumberStrategy) { (curly braket closes in line 668).

If you could fix this in any upcoming version, that would be awesome.

Thanks!

uhlryk commented 7 years ago

Thanks, I added your change.