fix: typo

This commit is contained in:
Zhicheng Wang 2018-08-23 14:39:30 +08:00
parent a43beabdb7
commit 2721708915
1 changed files with 2 additions and 2 deletions

View File

@ -1199,10 +1199,10 @@ the `HeroesComponent` in the same file,
If you define the component before the service,
you'll get a runtime null reference error.
如果你把 `HeroService``HeroesComponent` 组合在同一个文件里,
如果你`HeroService``HeroesComponent` 组合在同一个文件里,
**就得把组件定义放在最后面!**
如果把组件定义在了服务的前面,
在运行时抛出空指针错误。
在运行时它就会抛出空指针错误。
<div class="alert is-helpful">