Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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



```