2015-11-06 12:26:24 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetSection
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								Component configuration
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-13 07:14:12 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetIndex 6
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@description
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 12:26:24 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`@Component` extends `@Directive`,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								so the `@Directive` configuration applies to components as well
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetItem
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								syntax:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`viewProviders: [MyService, provide(...)]`|`viewProviders:`
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								description:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								Array of dependency injection providers scoped to this component's view.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetItem
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								syntax:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 12:26:24 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`template: 'Hello {{name}}'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								templateUrl: 'my-component.html'`|`template:`|`templateUrl:`
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								description:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								Inline template / external template url of the component's view.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetItem
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								syntax:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 12:26:24 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`styles: ['.primary {color: red}']
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								styleUrls: ['my-component.css']`|`styles:`|`styleUrls:`
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								description:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
										
									
								 | 
							
							
								List of inline css styles / external stylesheet urls for styling component’s view.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetItem
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								syntax:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`directives: [MyDirective, MyComponent]`|`directives:`
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								description:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
										
									
								 | 
							
							
								List of directives used in the the component’s template.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								@cheatsheetItem
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								syntax:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								`pipes: [MyPipe, OtherPipe]`|`pipes:`
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								description:
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								List of pipes used in the component's template.
							 |