single-spa shared component with vue.js

561 views Asked by At

Hello, I am building a micro frontend architecture with single-spa. In my main app (bootstrap), I declare my fragments, my routing and I inject the component library (ex: element UI), and my authentication library (custom).

Everything works fine, display and routing, though:

  1. how to use a component of elementUI in a fragment? Example:
import {Button} from 'element-ui'

I have tried with this code (where component_name is button or other)

<component :is="component_name">bla bla</component>

but Vue does not recognize this button.

  1. How to use utility functions of the authentication library. For example recover the access rights for a component? Calling the function directly does not work.

Thanks

0

There are 0 answers