https://github.com/tinacious/angular-tolowercase
:arrow_lower_right: Angular.js directive to lower case input for ng-model
https://github.com/tinacious/angular-tolowercase
angularjs forms
Last synced: 30 days ago
JSON representation
:arrow_lower_right: Angular.js directive to lower case input for ng-model
- Host: GitHub
- URL: https://github.com/tinacious/angular-tolowercase
- Owner: tinacious
- Created: 2015-07-11T01:33:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T02:43:18.000Z (almost 7 years ago)
- Last Synced: 2025-03-11T19:42:26.626Z (about 1 year ago)
- Topics: angularjs, forms
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-tolowercase
This **angular-tolowercase** is an Angular.js directive that lowercases all of its input so you don't have to.
Simply add the attribute `to-lower-case` on your input. The usage of `ng-model` is required.
See the demo [here](http://tinacious.github.io/angular-tolowercase).
## Project requirements
This project depends on Angular 1.x.
## Usage
### Installation
Install using Bower:
```
bower install angular-tolowercase
```
You can also install it manually by copying the `to-lower-case.js` file into your project.
### Using in your project
Add the directive as a dependency to your app:
```js
angular.module('myApp', ['td.tolowercase'])
```
Use on any input element like so—don't forget that you must use `ng-model` for this directive to work:
```html
```