Trying to pass props to vue component with @module-federation/bridge-vue3@latest #3442
Unanswered
beatriz-cantilho
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, guys!
I'm having some trouble to pass propreties to my component when I create it with the structure below:
Host/App.vue
Host App
Remote export-app.js
import App from './App.vue'
import './main.scss'
import router from './router'
import { createBridgeComponent } from '@module-federation/bridge-vue3'
export default createBridgeComponent({
rootComponent: App,
appOptions: () => ({
router,
}),
})
Remote app.vue
someParam: {{ someParam }}
anotherParam: {{ anotherParam }}
Custom Attribute: {{ $attrs['custom-attr'] }}
All Attributes: {{ $attrs }}Any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions