mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
DEPRECATION:
Use `RouterModule.forRoot(routes, {initialNavigation: 'enabled'})` instead of
`RouterModule.forRoot(routes, {initialNavigtaion: true})`.
Before doing this, move the initialization logic affecting the router
from the bootstrapped component to the boostrapped module.
Similarly, use `RouterModule.forRoot(routes, {initialNavigation: 'disabled'})`
instead of `RouterModule.forRoot(routes, {initialNavigation: false})`.
Deprecated options: 'legacy_enabled', `true` (same as 'legacy_enabled'),
'legacy_disabled', `false` (same as 'legacy_disabled').
The "Router Initial Navigation" design document covers this change.
Read more here:
https://docs.google.com/document/d/1Hlw1fPaVs-PCj5KPeJRKhrQGAvFOxdvTlwAcnZosu5A/edit?usp=sharing
|
||
|---|---|---|
| .. | ||
| directives | ||
| utils | ||
| apply_redirects.ts | ||
| config.ts | ||
| create_router_state.ts | ||
| create_url_tree.ts | ||
| events.ts | ||
| index.ts | ||
| interfaces.ts | ||
| private_export.ts | ||
| recognize.ts | ||
| route_reuse_strategy.ts | ||
| router.ts | ||
| router_config_loader.ts | ||
| router_module.ts | ||
| router_outlet_map.ts | ||
| router_preloader.ts | ||
| router_state.ts | ||
| shared.ts | ||
| url_handling_strategy.ts | ||
| url_tree.ts | ||
| version.ts | ||