micro-frontends
micro-frontends copied to clipboard
Any ETA for navigation reference?
I am looking for reference to develop wizard using micro-frontends. I suppose the navigation reference should cover it. Do you have any ETA for it? Or any documentation how to achieve it?
I would also be interested in continuing the topic
Two years later...
+1 interested in the topic as well
I've done navigations by changing the window.location
within a custom event handler to load the page of the new location.
Event handler:
window.location.href = "https://mysite.com?my_arg=fun-times"
Otherwise, you're behaving like a single page app and changing the DOM per custom event handling or an async POST/GET to the server, but not loading a page entirely. Perhaps even modifying the URL like you see when clicking an anchor link that jumps to a location but doesn't load from the server.
The concept is similar to other things mentioned in the artile:
- Use the DOM API to load a new page within a custom event handler
- Or use SPA behavior, modifying the DOM to make an illusion of a new page
- Modify URL if necessary (and implement custom events for navigating backwards or forwards)