1.0.0 • Published 10 years ago
angular-camelcase-to-human v1.0.0
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-humanThis filter also can be installed through Bower:
bower install angularjs-camelCase-humanLoad 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.
1.0.0
10 years ago