Siget comes with Angular Router already wired up and ready to use. The router is registered through the standalone application configuration API — noDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kevinrodriguezmorales/siget/llms.txt
Use this file to discover all available pages before exploring further.
RouterModule required. All you need to do is add route definitions to app.routes.ts and your application gains full client-side navigation.
The Routes Array
Route definitions live insrc/app/app.routes.ts. Out of the box the array is empty, giving you a clean slate:
Application Configuration
The router is provided insrc/app/app.config.ts via provideRouter, which is passed the exported routes array:
appConfig is consumed by bootstrapApplication in src/main.ts, so the router is active from the very first render.
Adding Your First Route
Generate a component
Use the Angular CLI to scaffold the component that will serve as your route’s view:
Import the components in app.routes.ts
Open
src/app/app.routes.ts and import the newly generated components at the top of the file:Add route definitions
Populate the
routes array with path–component pairs. A wildcard redirect ensures unknown URLs fall back gracefully:Lazy Loading with loadComponent
For larger applications you can defer loading a component’s JavaScript bundle until the route is actually visited. The following example is illustrative — Siget’s starter app.routes.ts ships with an empty routes array and no lazy-loaded routes. As your project grows, replace the component property with loadComponent and a dynamic import:
<router-outlet /> is already included at the end of src/app/app.html. It acts as the placeholder where the router renders the component matched by the current URL — you do not need to add it manually.