2.0.0 • Published 5 years ago
ocph23-aj-input v2.0.0
ocph23-aj-input
angularjs module direactive for handle incoming string to Html Input
- Number
- Decimal
- Date Time
Install
npm i ocph23-aj-input
Reference Module
on html file
<script src="./node_modules/ocph23-aj-input/ocph23-aj-input.js"></script>
on base app (ex: app.js)
angular.module('app', [ 'ocph-aj-input' ]) .controller('controller', ($scope) => { $scope.number = '2000'; $scope.decimal = '20.50'; $scope.date = '2000-10-3'; });
Example
Number
<input type="number" ng-model="number" input-number>
Decimal
<input type="number" ng-model="decimal" step="0.50" input-decimal>
Date
<input type="date" ng-model="date" input-date>