This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
public/docs/ts/latest/guide Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ block ts-decorator
252
252
Here are a few of the possible `@Component` configuration options:
253
253
254
254
:marked
255
- - `moduleId: module.id `: sets the base for module-relative loading of the `templateUrl`.
255
+ - `moduleId`: sets the source of the base address (`module.id`) for module-relative URLs such as the `templateUrl`.
256
256
257
257
- `selector`: CSS selector that tells Angular to create and insert an instance of this component
258
258
where it finds a `<hero-list>` tag in *parent* HTML.
@@ -261,11 +261,6 @@ block ts-decorator
261
261
262
262
- `templateUrl`: module-relative address of this component's HTML template, shown [above](#templates).
263
263
264
- - `directives`: !{_array} of the components or directives that *this* template requires.
265
- In the last line of `hero-list.component.html`, Angular inserts a `HeroDetailComponent`
266
- in the space indicated by `<hero-detail>` tags.
267
- Angular does so only if `HeroDetailComponent` is in this `directives` !{_array}.
268
-
269
264
- `providers`: !{_array} of **dependency injection providers** for services that the component requires.
270
265
This is one way to tell Angular that the component's constructor requires a `HeroService`
271
266
so it can get the list of heroes to display.
You can’t perform that action at this time.
0 commit comments