1.0.0 • Published 8 years ago

angular-camelcase-to-human v1.0.0

Weekly downloads
342
License
MIT
Repository
github
Last release
8 years ago

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.