填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

@angular/router/upgrade

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

入口点的导出

Entry point exports

函数

Functions

setUpLocationSync

设置 location 更改监听器以触发 history.pushState。解决 onPopState 不会触发 history.pushState 的问题。必须在调用 UpgradeModule.bootstrap 之后调用。

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

创建一个初始化程序,该初始化程序设置 ngRoute 集成并设置 Angular 路由器。

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