router
router copied to clipboard
Angular Component Router - A declarative router for Angular applications
Loaders can be used to fetch data for the component, run checks such as auth, redirect, and more. ```ts import { Component } from '@angular/core'; @Component({ template: ` `, })...
Use with a module federation example, see what works, and fix what's broken.
When lazy loading NgModules and Components, support loading them without the `.then` and allow them to be exported as default. ```ts import { Component } from '@angular/core'; @Component({ template: `...
Currrently you define routes by using ```html ``` This proposal changes the component to `routes` ```html ``` This aligns with `react-router` v6+ syntax for declaring groups of routes
Since we have a name, now we need a logo. Ideally, there would be a logo for the whole org `angular-component` and a visually compatible logo for the `router`. What...
- When route is rendered - Before route is destroyed
Currently we use a route component to define a route. ```html ``` - This has an easy mental model for registering a route - Provides an easy way to pass...
Components can access their dedicated URL param via `RouteParams` provider. Sometimes, components need to be aware of all the params in the URL. This should ideally be provided via router...
Would something like this be a bad idea? And is there some built-in function that would be able to check if route matches pattern (I imagine link active has to...
In `ast-utils.ts` there are signs of a copy-paste from `ngrx` project. This entire file should be checked for leftovers: https://github.com/brandonroberts/angular-routing/blob/master/libs/angular-routing/schematics/utils/ast-utils.ts#L356-L363