fix; architecture.jade

This commit is contained in:
Zhimin YE (Rex) 2016-09-19 09:48:05 +01:00
parent 5137a9d65c
commit 33125b71d3
1 changed files with 4 additions and 7 deletions

View File

@ -322,13 +322,10 @@ figure
组件通过一些由属性和方法组成的API与视图交互。 组件通过一些由属性和方法组成的API与视图交互。
<a id="component-code"></a> <a id="component-code"></a>
For example, this `HeroListComponent` has a `heroes` property that returns !{_an} !{_array} of heroes that it acquires from a service. `HeroListComponent` also has a `selectHero()` method that sets a `selectedHero` property when the user clicks to choose a hero from that list.
For example, this `HeroListComponent` has a `heroes` property that returns !{_an} !{_array} of heroes <a id="component-code"></a>
that it acquires from a service. 例如,`HeroListComponent`有一个`heroes`属性,它返回一个“英雄”数组,这个数组是由一个服务提供的。`HeroListComponent`还有一个`selectHero()`方法,当用户从列表中点选一个英雄时,就把他/她设置到`selectedHero`属性。
`HeroListComponent` also has a `selectHero()` method that sets a `selectedHero` property when the user clicks to choose a hero from that list.
例如,`HeroListComponent`有一个`heroes`属性,它返回一个“英雄”数组,这个数组是由一个服务提供的。
`HeroListComponent`还有一个`selectHero()`方法,当用户从列表中点选一个英雄时,就把他/她设置到`selectedHero`属性。
+makeExcerpt('app/hero-list.component.ts', 'class') +makeExcerpt('app/hero-list.component.ts', 'class')
:marked :marked