{ "id": "api/router/upgrade", "title": "@angular/router/upgrade", "contents": "\n\n
\n
\n
\n \n API > @angular/router\n
\n \n
\n \n
\n

@angular/router/upgradelink

\n \n \n \n \n
\n\n \n\n
\n

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

\n\n \n\n \n\n\n \n\n

Entry point exportslink

\n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Functionslink

\n \n \n \n \n \n \n \n
setUpLocationSync\n \n

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

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Typeslink

\n \n \n \n \n \n \n \n
RouterUpgradeInitializer\n \n

Creates an initializer that sets up ngRoute integration\nalong with setting up the Angular router.

\n\n
\n
\n \n\n
\n
\n\n\n" }