From 292a48a261eb5739d08ec60db18c17659751b806 Mon Sep 17 00:00:00 2001 From: syropian Date: Sun, 24 Jul 2016 23:27:40 -0400 Subject: [PATCH] Updating readme with npmcdn link and info about using the value prop --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 77225d6..39a3dae 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ $ npm install vue-input-autosize --save ``` +**or** include the UMD build, hosted by [npmcdn](https://npmcdn.com) in a ` +``` + ## Usage ```js @@ -23,6 +29,9 @@ Vue.use(VueInputAutosize, { maxWidth: 500, minWidth: 20, comfortZone: 0 }); `` +### Why bind to `value` instead of using `v-model`? +Currently, there's no easy way to track changes to a `v-model` value from a directive. However, since the `value` property of a text field controls its content, and is also a valid parameter to watch for updates from the directive, we can dynamically bind to that instead. + ## License MIT © [Collin Henderson](https://github.com/syropian)