ng-intl-tel-input
ng-intl-tel-input copied to clipboard
Add new intl-tel-input-options parameter: "watch", for two-way binding ngModel in realtime & update compatibility for jQuery 3^.
[This PR also fixes compatibility with jQuery 3^]
This update allows for the user to set 'watch' to true in the intl-tel-input-options. This corrects how model value updates and solves any functionality that is dependent on two-way binding to the ngModel value. If watch is set to false, functionality reverts back to the way it was previously where the ngModel value only updates in $scope once the phone number is found to be valid and is 'undefined' if the phone number is invalid.
Using 'watch' only works for Angular.js v1.3 or higher.