vue-append, like v-html directive, but it can call javascript function
npm install vue-append> vue-append, like v-html directive, but it can call javascript function
```
npm install vue-append --saveor
yarn add vue-append
#### Es6 module
- Available through npm as vue-append.
` js`
import VueAppend from 'vue-append'
Vue.use(VueAppend)
#### CommonJS
` js`
var VueAppend = require('vue-append')
Vue.use(VueAppend)
#### Direct include
- You can also directly include it with a
;
new Vue({
el: '#app',
data: {
html: html
},
methods: {
appended() {
console.log('appended!');
// could use jQuery 😊
alert(window.jQuery);
}
}
});
`
See /example for a timer demo. To build it, run npm install && npm run build`.