international-phone-number icon indicating copy to clipboard operation
international-phone-number copied to clipboard

validator fix for angular before v1.3, dependency injection fix for minification-ready

Open andreafdaf opened this issue 9 years ago • 2 comments

I was still using angular 1.2 in a project and international-phone-number ~0.0.3, Bower updated it for me to 0.0.7 and international-phone-number stopped working. This is because validators are not available before angular 1.3 (but international-phone-number asks for angular >1.2.0 so the update passed).

This simple check make the lib work on newer 1.3+ using validators and in previous ones skipping that piece of code

andreafdaf avatar Apr 25 '15 20:04 andreafdaf

I've also added the "array notation" dependecy injection to make the minified file work :+1:

andreafdaf avatar Apr 25 '15 21:04 andreafdaf

Hi ! It would be great to merge this ;)

HugoCrd avatar Jun 02 '15 14:06 HugoCrd