vue-oneline

1.2.0 • Public • Published

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

/vue-oneline/

    Package Sidebar

    Install

    npm i vue-oneline

    Weekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    4.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • nfreear