angular-camelcase-to-human
v1.0.0
Published
Convert camelCase strings to human readable ones
Downloads
120
Maintainers
Readme
AngularJS camelCase To Human Filter
{{camelCaseString | camelCaseToHuman}}
Converts e.g. myCamelCaseString => My Camel Case String
Installation
Via npm (Recommended)
npm install --save angular-camelcase-to-human
This filter also can be installed through Bower:
bower install angularjs-camelCase-human
Load the script:
<script src="/path/to/camelcase-browser.js></script>
Include the module as a dependency in your application:
angular.module('MyApp', ['camelCaseToHuman']);
Usage:
In your template:
{{ "convertThis" | camelCaseToHuman }}
In your JS:
angular.module('MpApp').controller(function($scope, $filter) {
var camelCase = $filter('camelCaseToHuman');
$scope.randomThing = camelcase('convertThis');
});
License
This project is licensed under the MIT license.