vue-default-value
A Vue.js Directive to set a default value for editable elements with no affect to the model state.
Installation
Via NPM
Install the package
$ npm install vue-default-value
and require it in the code
var Vue = ;var VueDefaultValue = ;Vue;
Via Bower
Install the package
$ bower install vue-default-value
add script on page
or you can do it with RequireJS or any similar tool.
Usage
The directive can be used with any element that has value attribute.
Username: <input v-model="username" v-default-value="'Guest'" />
License
MIT © Stanislav Termosa