Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/puigcerber/angular-camelize-filter
- Owner: Puigcerber
- License: mit
- Created: 2016-01-24T17:01:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T11:39:06.000Z (over 8 years ago)
- Last Synced: 2024-10-29T01:26:32.897Z (16 days ago)
- Language: JavaScript
- Homepage: https://twitter.com/Puigcerber
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)