Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/puigcerber/angular-camelize-filter

:camel: AngularJS filter to convert strings to lower camel case replacing non-alphanumeric characters.
https://github.com/puigcerber/angular-camelize-filter

Last synced: 4 days ago
JSON representation

:camel: AngularJS filter to convert strings to lower camel case replacing non-alphanumeric characters.

Awesome Lists containing this project

README

        

# angular-camelize-filter

AngularJS filter to convert strings to **lower camel case** replacing non-alphanumeric characters.

## Installation

You can install the filter using [Bower](http://bower.io/):

```bash
$ bower install angular-camelize-filter
```

Or [npm](https://www.npmjs.com/):

```bash
$ npm install angular-camelize-filter
```

Then you have to include it in your HTML:

```html

```

And inject the module `puigcerber.camelize` as a dependency of your application:

```js
angular.module('webApp', ['puigcerber.camelize']);
```

## Usage

You can use it like any other AngularJS filter:

```html

{{ input | camelize }}


```

### Example

```js
var camelized = $filter('camelize')('angular-camelize-filter');
console.log(camelized); // angularCamelizeFilter
```

## Related

* [capitalize](https://github.com/Puigcerber/angular-capitalize-filter):
AngularJS filter to capitalize sentences and specially team names.
* [lowerize](https://github.com/Puigcerber/angular-lowerize-filter):
AngularJS filter to convert strings to lower case replacing non-alphanumeric characters.

## License

MIT © [Pablo Villoslada Puigcerber](http://pablovilloslada.com)