Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chesleybrown/autofill-directive
AngularJS directive that fixes the issue where browsers autofill inputs and they aren't reflective in the model upon submit.
https://github.com/chesleybrown/autofill-directive
Last synced: 15 days ago
JSON representation
AngularJS directive that fixes the issue where browsers autofill inputs and they aren't reflective in the model upon submit.
- Host: GitHub
- URL: https://github.com/chesleybrown/autofill-directive
- Owner: chesleybrown
- License: mit
- Created: 2014-01-07T22:16:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T14:02:51.000Z (almost 11 years ago)
- Last Synced: 2024-10-11T10:39:38.114Z (about 1 month ago)
- Language: JavaScript
- Size: 196 KB
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
autofill-directive
==================AngularJS directive that fixes the issue where browsers autofill inputs and they aren't reflective in the model upon submit.
#### Install with Bower:
```
bower install autofill-directive
```#### Include the directive in your Angular module:
```
var myApp = angular.module('myApp', ['autofill-directive']);
```## Usage
Use the `autofill-submit` directive on the form that you are submitting and provide the angular expression you want executed. Then place the `autofill` directive on any inputs that may be autofilled by the browser. Now the `model` will be updated to reflect what the browser has autofilled into the input BEFORE the submit expression is executed.
```html
```