0.1.2 • Published 5 years ago

single-spa-vuejs v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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