betsol-ng-intl-tel-input
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "betsol-ng-intl-tel-input", | ||
"description": "intl-tel-input integration for Angular.js", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/betsol-ng-intl-tel-input.js", | ||
@@ -6,0 +6,0 @@ "ignore": [ |
# betsol-ng-intl-tel-input changelog | ||
## Version 0.0.1 | ||
## Version 0.0.1 — 0.0.2 | ||
(11 Feb 2016) | ||
- Initial release |
/** | ||
* betsol-ng-intl-tel-input - A template project for Angular.js modules | ||
* @version v0.0.1 | ||
* betsol-ng-intl-tel-input - intl-tel-input integration for Angular.js | ||
* @version v0.0.2 | ||
* @link https://github.com/betsol/ng-intl-tel-input | ||
@@ -17,4 +17,4 @@ * @license MIT | ||
.directive('intlTelInput', ['phoneNumberInputOptions', function ( | ||
phoneNumberInputOptions | ||
.directive('intlTelInput', ['intlTelInputOptions', function ( | ||
intlTelInputOptions | ||
) { | ||
@@ -31,3 +31,3 @@ return { | ||
// Building options for this control. | ||
var options = angular.extend({}, $scope.intlTelInputOptions || {}, phoneNumberInputOptions); | ||
var options = angular.extend({}, $scope.intlTelInputOptions || {}, intlTelInputOptions); | ||
@@ -34,0 +34,0 @@ // Initializing the control with plugin. |
/** | ||
* betsol-ng-intl-tel-input - A template project for Angular.js modules | ||
* @version v0.0.1 | ||
* betsol-ng-intl-tel-input - intl-tel-input integration for Angular.js | ||
* @version v0.0.2 | ||
* @link https://github.com/betsol/ng-intl-tel-input | ||
@@ -9,2 +9,2 @@ * @license MIT | ||
*/ | ||
!function(n){"use strict";n.module("betsol.intlTelInput",[]).constant("intlTelInputOptions",{}).directive("intlTelInput",["phoneNumberInputOptions",function(t){return{restrict:"AC",require:"ngModel",scope:{intlTelInputOptions:"=",intlTelInputController:"="},link:function(e,l,u,i){function o(){return l.intlTelInput("getNumber")}function r(){i.$setViewValue(o())}var p=n.extend({},e.intlTelInputOptions||{},t);l.intlTelInput(p),i.$render=function(){i.$viewValue&&l.intlTelInput("setNumber",i.$modelValue)},i.$parsers.unshift(function(){return o()}),i.$validators.phoneNumber=function(n,t){return n||t?l.intlTelInput("isValidNumber"):!0},e.$on("$destroy",function(){l.intlTelInput("destroy")}),"object"==typeof e.intlTelInputController&&(e.intlTelInputController.setCountry=function(n){l.intlTelInput("setCountry",n),r()}),l.bind("country-change",r)}}}])}(angular); | ||
!function(n){"use strict";n.module("betsol.intlTelInput",[]).constant("intlTelInputOptions",{}).directive("intlTelInput",["intlTelInputOptions",function(t){return{restrict:"AC",require:"ngModel",scope:{intlTelInputOptions:"=",intlTelInputController:"="},link:function(e,l,u,i){function o(){return l.intlTelInput("getNumber")}function r(){i.$setViewValue(o())}var p=n.extend({},e.intlTelInputOptions||{},t);l.intlTelInput(p),i.$render=function(){i.$viewValue&&l.intlTelInput("setNumber",i.$modelValue)},i.$parsers.unshift(function(){return o()}),i.$validators.phoneNumber=function(n,t){return n||t?l.intlTelInput("isValidNumber"):!0},e.$on("$destroy",function(){l.intlTelInput("destroy")}),"object"==typeof e.intlTelInputController&&(e.intlTelInputController.setCountry=function(n){l.intlTelInput("setCountry",n),r()}),l.bind("country-change",r)}}}])}(angular); |
{ | ||
"name": "betsol-ng-intl-tel-input", | ||
"description": "intl-tel-input integration for Angular.js", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/betsol/ng-intl-tel-input", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -10,3 +10,3 @@ (function (angular) { | ||
.directive('intlTelInput', function ( | ||
phoneNumberInputOptions | ||
intlTelInputOptions | ||
) { | ||
@@ -23,3 +23,3 @@ return { | ||
// Building options for this control. | ||
var options = angular.extend({}, $scope.intlTelInputOptions || {}, phoneNumberInputOptions); | ||
var options = angular.extend({}, $scope.intlTelInputOptions || {}, intlTelInputOptions); | ||
@@ -26,0 +26,0 @@ // Initializing the control with plugin. |
16191