diff --git a/public/docs/ts/latest/guide/upgrade.jade b/public/docs/ts/latest/guide/upgrade.jade index 2b9ea8b439..7b2cb87b5c 100644 --- a/public/docs/ts/latest/guide/upgrade.jade +++ b/public/docs/ts/latest/guide/upgrade.jade @@ -2584,7 +2584,7 @@ code-example(format=""). 最后,当我们切换到Angular 2路由时,我们需要重新过一遍这些组件测试。对详情组件来说,我们需要提供一个Angular 2 `RouteParams`的mock对象,而不再用Angular 1中的`$routeParams`。 -+makeExample('upgrade-phonecat-3-final/ts/app/phone-detail/phone-detail.component.spec.ts', 'routeparams', 'app/phone-detail/phone-detail.component.spec.ts') ++makeExample('upgrade-phonecat-3-final/ts/app/phone-detail/phone-detail.component.spec.ts', 'activatedroute', 'app/phone-detail/phone-detail.component.spec.ts') :marked And for the phone list component we need to set up a few things for the router itself so that