Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/puigcerber/angular-lowerize-filter
- Owner: Puigcerber
- License: mit
- Created: 2016-01-25T16:20:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T11:36:06.000Z (almost 9 years ago)
- Last Synced: 2024-11-02T17:08:20.781Z (2 months ago)
- Language: JavaScript
- Homepage: https://twitter.com/Puigcerber
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)