From 6f4b6783c09e4ae5c52157b6d2265e790e4c0170 Mon Sep 17 00:00:00 2001 From: Matthew Hill Date: Sun, 12 Apr 2015 01:13:14 +0100 Subject: [PATCH] docs(02_directives): TemplateConfig -> @View for #1224 Closes #1325 --- modules/angular2/docs/core/02_directives.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 {} | |