international-phone-number
international-phone-number copied to clipboard
validator fix for angular before v1.3, dependency injection fix for minification-ready
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
I've also added the "array notation" dependecy injection to make the minified file work :+1:
Hi ! It would be great to merge this ;)