single-spa / single-spa-angular

Helpers for building single-spa applications which use Angular
Apache License 2.0
201 stars 78 forks source link

Angular + Single SPA - micro parcel with wrong behavior #347

Open dfealves opened 3 years ago

dfealves commented 3 years ago

Hello guys,

I'm trying to add a parcel micro-app inside another micro-app, but the behavior is incorrect, I made a screen recording to better exemplify

Video Angular + Single SPA

Captura de tela de 2021-03-25 17-16-20 Captura de tela de 2021-03-25 17-16-07 Captura de tela de 2021-03-25 17-15-56 Captura de tela de 2021-03-25 17-52-12

joeldenning commented 3 years ago

Since the issue is with the back button it's probably related to angular router. Make sure the parcel has the router configured properly, as documented in https://single-spa.js.org/docs/ecosystem-angular#configure-routes. Also make sure you're using the extra single-spa providers, as they're related to the router (see https://single-spa.js.org/docs/ecosystem-angular#api-updates).

There's a long history of Angular Router not playing nice with single-spa router, so there's a possibility that it's related to that. i don't diagnose single-spa-angular issues anymore, but perhaps some of the other maintainers could help diagnose this. To help them, please provide a repo that demonstrates the issue. I'm transferring this to the single-spa-angular repo.