Skip to content

nfreear/vue-oneline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published