angular/aio/content
Andrew Scott 0a8b8a66cd docs(router): Deprecate public members of Router that are meant to be configured elsewhere (#48006)
None of the public properties of the `Router` are meant to be writeable.
They should all be configured using other methods, all of which have been
documented.

DEPRECATED: router writable properties

The following strategies are meant to be configured by registering the
application strategy in DI via the `providers` in the root `NgModule` or
`bootstrapApplication`:
* `routeReuseStrategy`
* `titleStrategy`
* `urlHandlingStrategy`

The following options are meant to be configured using the options
available in `RouterModule.forRoot` or `provideRouter`.
* `onSameUrlNavigation`
* `paramsInheritanceStrategy`
* `urlUpdateStrategy`
* `canceledNavigationResolution`

The following options are available in `RouterModule.forRoot` but not
available in `provideRouter`:
* `malformedUriErrorHandler` - This was found to not be used anywhere
  internally.
* `errorHandler` - Developers can instead subscribe to `Router.events`
  and filter for `NavigationError`.

PR Close #48006
2022-11-17 09:26:20 -08:00
..
cli docs: update analytics gathering documentation (#47840) 2022-11-03 17:45:35 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
errors docs(core): add an error details page for unsafe <iframe> bindings (#48027) 2022-11-11 11:28:35 -08:00
examples docs(router): small adjustments to router docs (#48009) 2022-11-09 10:56:40 -08:00
extended-diagnostics docs(docs-infra): fix minor typos in angular.io (#47295) (#47295) 2022-09-07 10:47:21 -07:00
guide docs(router): Deprecate public members of Router that are meant to be configured elsewhere (#48006) 2022-11-17 09:26:20 -08:00
images docs: update of documentation contrib. guide (#47381) 2022-10-13 16:37:25 +00:00
marketing docs: update analytics gathering documentation (#47840) 2022-11-03 17:45:35 -07:00
special-elements docs(docs-infra): fix minor typos in angular.io (#47295) (#47295) 2022-09-07 10:47:21 -07:00
start docs: made code appear better, etc. (#47336) 2022-11-03 17:44:55 -07:00
tutorial docs: remove assorted lint errors (#47693) 2022-10-07 10:42:12 -07:00
file-not-found.md docs: improve markdown (#45325) 2022-04-08 19:36:30 +00:00
license.md docs: improve markdown (#45325) 2022-04-08 19:36:30 +00:00
navigation.json docs: add info about v15 changes and update process (#47951) 2022-11-16 16:13:30 -08:00