fix: upgrade example
This commit is contained in:
parent
abb21017c2
commit
0741e1f058
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue