Router
About
<router-outlet>
<router-outlet>routerLink
routerLinkPassing queryParams to the routerLink
queryParams to the routerLinkPassing fragments to the routerLink
fragments to the routerLinkrouterLinkActive
routerLinkActiveProgramatically navigate router.navigate()
router.navigate()Passing queryParams
queryParamsPassing fragments
fragmentsPreserving queryParams and fragments - after Navigate with queryParamsHandling
queryParams and fragments - after Navigate with queryParamsHandlingNested Routes
Nested routes to it's own file
Wildcard Routes
pathMatch option
pathMatch optionSetting the Page Title
static titles
static titlesdynamic title
dynamic titlePassing static and dynamic Data to a Route
static and dynamic Data to a Routestatic data
static dataAccess with Signals
Access with ActivatedRoute - with data (Observable)
ActivatedRoute - with data (Observable)dynamic data - with ResolveFn functions
dynamic data - with ResolveFn functionsdynamic data - with Resolve Classes as Services (Avoid)
dynamic data - with Resolve Classes as Services (Avoid)Fetching Url data - with input()
input()Access Parent Route Data
Retrieving param /:userId
/:userIdRetrieving multiple params /:userId/:name
/:userId/:nameRetriving Url queryParams ?allowEdit=value
?allowEdit=valueRetrieving Url fragments #loading
#loadingFetching Url data - with ActivatedRoute service
ActivatedRoute serviceFetching data the Reactive way - with (Observable)
Observable)Fetching data NOT Reactive - with (.snapshot)
.snapshot)Retrieving Url queryParams ?allowEdit=value - with snapshot.queryParamMap or snapshot.queryParams
?allowEdit=value - with snapshot.queryParamMap or snapshot.queryParamsRetrieving Url fragments #loading - with snapshot.frament
#loading - with snapshot.framentRoute Guards
canMatch
canMatchwith Functions
with Classes
canActivate
canActivatecanActivateChild
canActivateChildcanDeactivate
canDeactivateLast updated
