parent
437617d564
commit
023ba1c75c
@ -202,7 +202,7 @@ block hero-class
|
|||||||
:marked
|
:marked
|
||||||
## Using the Hero class
|
## Using the Hero class
|
||||||
|
|
||||||
The `heroes` property in the component can now use the `Hero` class to return !{_an} !{_array}
|
After importing the `Hero` class, the `AppComponent.heroes` property can return a _typed_ !{_array}
|
||||||
of `Hero` objects:
|
of `Hero` objects:
|
||||||
|
|
||||||
+makeExcerpt('app/app.component.3.ts', 'heroes')
|
+makeExcerpt('app/app.component.3.ts', 'heroes')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user