From 676ddfa06535eaef09a45d975c9e8d97cfac23b5 Mon Sep 17 00:00:00 2001 From: Felix Itzenplitz Date: Thu, 21 Apr 2016 15:16:51 +0200 Subject: [PATCH] docs(cheatsheet): add Directive to cheatsheet Closes #8170 --- modules/angular2/docs/cheatsheet/class-decorators.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/angular2/docs/cheatsheet/class-decorators.md b/modules/angular2/docs/cheatsheet/class-decorators.md index e1862e764e..309145f25c 100644 --- a/modules/angular2/docs/cheatsheet/class-decorators.md +++ b/modules/angular2/docs/cheatsheet/class-decorators.md @@ -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({...})