With Bower:
bower install --save ng-name-format
With npm:
npm install --save ng-name-format
- Import the
ngNameFormat.min.jsscript in your page. For example:
<script src="ngNameFormat.min.js"></script>- Include the module name
ngNameFormatin your angular app. For example:
angular.module("your-app", ['ngNameFormat']);
- Example:
<input type="text" name="field" ng-model="name" ng-name-format>Create a issue or send a pull request!
MIT