angular-camelcase-to-human

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i angular-camelcase-to-human

Weekly Downloads

15

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jdpedrie