5.0.6 • Published 10 years ago

bc-phone-number v5.0.6

Weekly downloads
42
License
MIT
Repository
github
Last release
10 years ago

bc-phone-number Build Status

Installation

Bower

bower install --save bc-phone-number
angular.module('myApp', ['bcPhoneNumber'])

NPM

npm install --save bc-phone-number
angular.module('myApp', [require('bc-phone-number')])

Other (not recommended)

Just download the dist folder.

Usage

<bc-phone-number ng-model='theNumber' default-country='us' preferred-countries='us gb ca' is-valid='isValid'></bc-phone-number>
angular.module('myModule', ['bcPhoneNumber', function(bcPhoneNumber) {

  scope.formattedNumber = bcPhoneNumber.format('966501234567');
  scope.isValid = bcPhoneNumber.isValid(scope.formattedNumber);
}]);

Note thatng-model and is-valid are scope variables.

5.0.6

10 years ago

5.0.5

10 years ago

5.0.4

10 years ago

5.0.3

10 years ago

5.0.0

10 years ago

4.0.0

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago

0.0.3-0

10 years ago

0.0.1-a6bb.0

10 years ago