ocph23-aj-input

2.0.0 • Public • Published

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>
    

Package Sidebar

Install

npm i ocph23-aj-input

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

5.92 kB

Total Files

10

Last publish

Collaborators

  • ocph23