From b43d2e2b0655d7cf3ac7835222956785e8a2c44c Mon Sep 17 00:00:00 2001 From: Chesley Brown Date: Tue, 7 Jan 2014 19:07:00 -0330 Subject: [PATCH] Updated readme to include instructions --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 9bff5dc..eac70f6 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,21 @@ autofill-directive ================== AngularJS directive that fixes the issue where browsers autofill inputs and they aren't reflective in the model upon submit. + +## Install + +Use `bower install autofill-directive` + +Include in your javascript using require such as `require('autofill-directive')(app);` + +## 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 +
+ + + +
+``` \ No newline at end of file