angularjs module direactive for handle incoming string to Html Input
- Number
- Decimal
- Date Time
npm i ocph23-aj-input
-
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'; });
-
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>