@angular/router/upgrade

From Get docs
< @angular/routerAngular/docs/11/api/router/upgrade


@angular/router/upgrade

entry-point

Provides support for upgrading routing applications from Angular JS to Angular.

Entry point exports

Functions

setUpLocationSync Sets up a location change listener to trigger history.pushState. Works around the problem that onPopState does not trigger history.pushState. Must be called after calling UpgradeModule.bootstrap.

Types

RouterUpgradeInitializer Creates an initializer that sets up ngRoute integration along with setting up the Angular router.


© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/router/upgrade