| 
									
										
										
										
											2015-11-06 12:26:24 +00:00
										 |  |  | @cheatsheetSection | 
					
						
							|  |  |  | Class decorators | 
					
						
							| 
									
										
										
										
											2015-11-13 07:14:12 +00:00
										 |  |  | @cheatsheetIndex 4 | 
					
						
							| 
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 |  |  | @description | 
					
						
							|  |  |  | `import {Directive, ...} from 'angular2/angular2';` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @cheatsheetItem | 
					
						
							|  |  |  | `@Component({...}) | 
					
						
							|  |  |  | class MyComponent() {}`|`@Component({...})` | 
					
						
							|  |  |  | Declares that a class is a component and provides metadata about the component. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @cheatsheetItem | 
					
						
							|  |  |  | `@Pipe({...}) | 
					
						
							|  |  |  | class MyPipe() {}`|`@Pipe({...})` | 
					
						
							|  |  |  | Declares that a class is a pipe and provides metadata about the pipe. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @cheatsheetItem | 
					
						
							|  |  |  | `@Injectable() | 
					
						
							|  |  |  | class MyService() {}`|`@Injectable()` | 
					
						
							|  |  |  | Declares that a class has dependencies that should be injected into the constructor when the dependency | 
					
						
							|  |  |  | injector is creating an instance of this class. |