piral-samples / angular-routing-example

Sample project to illustrate routing when using Angular.

Home Page:https://docs.piral.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piral Logo

Piral Sample · GitHub License Gitter Chat

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.

About

Sample project to illustrate routing when using Angular.

https://docs.piral.io

License:MIT License


Languages

Language:TypeScript 58.1%Language:CSS 16.3%Language:SCSS 12.6%Language:HTML 6.9%Language:JavaScript 6.1%