docs(cheatsheet): add Directive to cheatsheet

Closes #8170
This commit is contained in:
Felix Itzenplitz 2016-04-21 15:16:51 +02:00
parent c8d00dc191
commit 676ddfa065
1 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,18 @@ class MyComponent() {}`|`@Component(...)`
description:
Declares that a class is a component and provides metadata about the component.
@cheatsheetItem
syntax(ts):
`@Directive({...})
class MyDirective() {}`|`@Directive({...})`
syntax(js):
`var MyDirective = ng.core.Directive({...}).Class({...})`|`ng.core.Directive({...})`
syntax(dart):
`@Directive(...)
class MyDirective() {}`|`@Directive(...)`
description:
Declares that a class is a directive and provides metadata about the directive.
@cheatsheetItem
syntax(ts):
`@Pipe({...})