fix: 组建 => 组件
This commit is contained in:
parent
fde8389977
commit
54da8debbd
|
@ -112,7 +112,7 @@ a#hooks-overview
|
||||||
that Angular calls shortly after creating the component:
|
that Angular calls shortly after creating the component:
|
||||||
|
|
||||||
每个接口都有唯一的一个钩子方法,它们的名字是由接口名再加上`ng`前缀构成的。比如,`OnInit`接口的钩子方法叫做`ngOnInit`,
|
每个接口都有唯一的一个钩子方法,它们的名字是由接口名再加上`ng`前缀构成的。比如,`OnInit`接口的钩子方法叫做`ngOnInit`,
|
||||||
Angular在创建组建后立刻调用它,:
|
Angular在创建组件后立刻调用它,:
|
||||||
|
|
||||||
+makeExample('lifecycle-hooks/ts/src/app/peek-a-boo.component.ts', 'ngOnInit', 'peek-a-boo.component.ts (excerpt)')(format='.')
|
+makeExample('lifecycle-hooks/ts/src/app/peek-a-boo.component.ts', 'ngOnInit', 'peek-a-boo.component.ts (excerpt)')(format='.')
|
||||||
:marked
|
:marked
|
||||||
|
|
|
@ -2656,7 +2656,7 @@ a#route-animation
|
||||||
|
|
||||||
The other two `@HostBinding` properties style the display and position of the component.
|
The other two `@HostBinding` properties style the display and position of the component.
|
||||||
|
|
||||||
另外两个`@HostBinding`属性指定组建的外观和位置。
|
另外两个`@HostBinding`属性指定组件的外观和位置。
|
||||||
|
|
||||||
The `HeroDetailComponent` will ease in from the left when routed to and will slide down when navigating away.
|
The `HeroDetailComponent` will ease in from the left when routed to and will slide down when navigating away.
|
||||||
|
|
||||||
|
|
|
@ -2395,7 +2395,7 @@ a(href="#toc").to-top 回到顶部
|
||||||
:marked
|
:marked
|
||||||
**Do** give components an _element_ selector, as opposed to _attribute_ or _class_ selectors.
|
**Do** give components an _element_ selector, as opposed to _attribute_ or _class_ selectors.
|
||||||
|
|
||||||
**坚持**给组建一个*元素*选择器,而不是*属性*或*类*选择器。
|
**坚持**给组件一个*元素*选择器,而不是*属性*或*类*选择器。
|
||||||
|
|
||||||
.s-why
|
.s-why
|
||||||
:marked
|
:marked
|
||||||
|
|
Loading…
Reference in New Issue