FEMessage / FEMessage/nuxt-micro-frontend

How push route params from main-app to sub-app?

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
128
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I have two nuxt applications: `main-app` and `sub-app`.
`main-app: localhost:3000`
`sub-app: localhost:3001`

In my sub-app I have one route `/pages/item/_id.vue` that was mapped in main-app.
E.g from main-app: `localhost:3000/item/1`

When I make this: `this.$router.push({ name: 'item', params: { id: 1 } })` from main-app the sub-app get `id` as `undefined`.

Can I use `router.push` or I only have that use vuex to the shared resources between main and sub apps?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.