angular-ys-directive-only-number
v1.0.8
Published
Angular directive only number for html5 input text
Downloads
3
Maintainers
Readme
angular-ys-directive-only-number
Angular directive only number for html5 input text
Installation
To install this module, you need to run the following command
$ npm install --save angular-ys-directive-only-number
Dependency
$ npm install --save jquery@~3.0.0
$ npm install --save angular@~1.6.1
$ npm install --save angular-ys-factory-keyboard@~1.0.0
$ npm install --save angular-ys-service-keyboard@~1.0.0
Include Javascripts in index.html
<script src="node_modules/angular-ys-factory-keyboard/dist/angular-ys-factory-keyboard.js"></script>
<script src="node_modules/angular-ys-service-keyboard/dist/angular-ys-service-keyboard.js"></script>
<script src="node_modules/angular-ys-directive-only-number/dist/angular-ys-directive-only-number.js"></script>
Add directive in app.js or main.js
angular.module('app', ['angularYS.DirectiveOnlyNumber']);
Example
<input type="text" ng-model="numericValue" ys-only-number></input>
<p>{{numericValue}}</p>