single-spa-vuejs

0.1.2 • Public • Published

single-spa-vuejs

a single-spa plugin for Vue applications

Install

npm install single-spa-vuejs --save
# or
yarn add single-spa-vuejs

Usage

import Vue from 'vue'
import singleSpaVue from 'single-spa-vuejs'

const vueLifecycles = singleSpaVue({
    Vue,
    appOptions: {
        el: `#app`,
        data () {
            return { content: 'hello single-spa' }
        },
        render: h => h('div', this.content)
    }
})

export const bootstrap = [
    vueLifecycles.bootstrap
]
export function mount(props) {
    return vueLifecycles.mount(props)
}
export const unmount = [
    vueLifecycles.unmount
]

License

MIT

Package Sidebar

Install

npm i single-spa-vuejs

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

13.7 kB

Total Files

8

Last publish

Collaborators

  • rzning