Skip to content

Commit 6f4b678

Browse files
matthewjhmhevery
authored andcommitted
docs(02_directives): TemplateConfig -> @view
for angular#1224 Closes angular#1325
1 parent b1bc792 commit 6f4b678

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/angular2/docs/core/02_directives.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ Here is an example of the kinds of injections which can be achieved:
277277

278278
```
279279
@Component({ |
280-
selector: 'my-app', |
281-
template: new TemplateConfig({ |
282-
templateUrl: 'my_app.html', |
283-
directives: [Form, FieldSet, |
284-
Field, Primary] |
285-
}) |
280+
selector: 'my-app' |
281+
}) |
282+
@View({ |
283+
templateUrl: 'my_app.html', |
284+
directives: [Form, FieldSet, |
285+
Field, Primary] |
286286
}) |
287287
class MyApp {} |
288288
|

0 commit comments

Comments
 (0)