Skip to content
shanmohan edited this page Apr 28, 2015 · 1 revision

How to use the component?

  • Install the bower component

      bower install https://github.com/shanmohan/mohan-directives.git
    
  • Refer the directive.js within your index file

      <script src="bower_components/mohan-directives/directive.js"></script>
    
  • Inject the component module into your main module

      angular.module('ekConsumerApp', ['mohan-directives']);
    
  • Use the directive in your input controls

      <input type="text" ng-model="name"  mohan-numeric-only>
    
Clone this wiki locally