fix: upgrade example

This commit is contained in:
Zhimin YE 2016-10-18 15:00:32 +01:00
parent abb21017c2
commit 0741e1f058
1 changed files with 1 additions and 1 deletions

View File

@ -2584,7 +2584,7 @@ code-example(format="").
最后当我们切换到Angular 2路由时我们需要重新过一遍这些组件测试。对详情组件来说我们需要提供一个Angular 2 最后当我们切换到Angular 2路由时我们需要重新过一遍这些组件测试。对详情组件来说我们需要提供一个Angular 2
`RouteParams`的mock对象而不再用Angular 1中的`$routeParams`。 `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 :marked
And for the phone list component we need to set up a few things for the router itself so that And for the phone list component we need to set up a few things for the router itself so that