diff --git a/modules/angular2/docs/core/02_directives.md b/modules/angular2/docs/core/02_directives.md index ff4aa998fa..cf7b5d80f9 100644 --- a/modules/angular2/docs/core/02_directives.md +++ b/modules/angular2/docs/core/02_directives.md @@ -277,12 +277,12 @@ Here is an example of the kinds of injections which can be achieved: ``` @Component({ | - selector: 'my-app', | - template: new TemplateConfig({ | - templateUrl: 'my_app.html', | - directives: [Form, FieldSet, | - Field, Primary] | - }) | + selector: 'my-app' | +}) | +@View({ | + templateUrl: 'my_app.html', | + directives: [Form, FieldSet, | + Field, Primary] | }) | class MyApp {} | |