Piral Sample ·
Sample project to illustrate routing with Angular.
⚡ Just use Angular's router and interact with the rest of the application natively without even thinking what is hosted where.
You can visit this demo at angular-routing.samples.piral.cloud/.
Getting Started
Install the dependencies:
npx lerna bootstrap
Now run the application with all (2) pilets:
npm start
One micro frontend is written in Angular using the hash location strategy with two pages and a tile, while the other has a complete "application" behind it using the standard browser location strategy. The application is mounted at a sub-path, where the Angular router takes care of actually dispatching to its subroutes.
The important part is that both things can play well together (even if the underlying router uses the browser location strategy).
More Information
...
License
Piral and this sample code is released using the MIT license. For more information see the license file.