vue-oneline

A one-line Javascript include to mount a Vue.js app, and quickly hack single-file prototypes.


Keywords
vue, vuejs
License
MIT
Install
npm install vue-oneline@1.2.0

Documentation

npm

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 and arrow functions (=>)

License: MIT