Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# angular-lowerize-filter

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

Intended to be used with [Firebase](https://www.firebase.com/) for creating named ID keys that can be indexed and queried.

## Installation

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

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

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

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

Then you have to include it in your HTML:

```html

```

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

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

## Usage

You can use it like any other AngularJS filter:

```html

{{ input | lowerize }}


```

### Example

```js
var lowerized = $filter('lowerize')('angular-lowerize-filter');
console.log(lowerized); // angularlowerizefilter
```

## Related

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

## License

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