docs(02_directives): TemplateConfig -> @View

for #1224

Closes #1325
This commit is contained in:
Matthew Hill 2015-04-12 01:13:14 +01:00 committed by Misko Hevery
parent b1bc792b56
commit 6f4b6783c0

View File

@ -277,12 +277,12 @@ Here is an example of the kinds of injections which can be achieved:
``` ```
@Component({ | @Component({ |
selector: 'my-app', | selector: 'my-app' |
template: new TemplateConfig({ | }) |
templateUrl: 'my_app.html', | @View({ |
directives: [Form, FieldSet, | templateUrl: 'my_app.html', |
Field, Primary] | directives: [Form, FieldSet, |
}) | Field, Primary] |
}) | }) |
class MyApp {} | class MyApp {} |
| |