Skip to content

Commit 1d11fde

Browse files
committed
docs(annotations): correct List for directives for Component
@component takes a List of directives https://github.com/angular/angular/blob/master/modules/angular2/src/core /annotations_impl/annotations.js#L867
1 parent b1ef30a commit 1d11fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/annotations_impl/annotations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ export class Component extends Directive {
832832
* })
833833
* @View({
834834
* template: `{{greeter.greet('world')}}!`,
835-
* directives: Child
835+
* directives: [Child]
836836
* })
837837
* class HelloWorld {
838838
* greeter:Greeter;

0 commit comments

Comments
 (0)