vue-oneline
v1.2.0
Published
A one-line Javascript include to mount a Vue.js app, and quickly hack single-file prototypes.
Downloads
15
Readme
vue-oneline
A one-line Javascript include to mount a Vue.js app, and quickly hack single file prototypes.
Usage
<!doctype html>
<div id="app">
<hello-world />
</div>
<script src="https://unpkg.com/vue-oneline"></script>
<script>
OneLine().then(done => {
Vue.component('hello-world', {
template: '<p> Hello World! </p>'
})
done() // Important: call 'done()' at the end of your Vue.js hack!
})
</script>
Implementation
- Uses
promises
andarrow
functions (=>
)
License: MIT