2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@cheatsheetSection  
						 
					
						
							
								
									
										
										
										
											2015-11-06 12:26:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Built-in directives
							 
						 
					
						
							
								
									
										
										
										
											2015-11-13 07:14:12 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@cheatsheetIndex  2 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@description  
						 
					
						
							
								
									
										
										
										
											2016-06-26 16:31:35 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@target  ts}`import {NgIf, ...} from '@angular/common';` {@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 21:17:26 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@target  js}Available from the `ng.common`  namespace{@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2015-12-15 17:36:40 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@target  dart}Available using `platform_directives`  in pubspec{@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@cheatsheetItem  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								syntax:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-23 16:02:19 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`<section *ngIf="showSection">` |`*ngIf`  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								description:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Removes or recreates a portion of the DOM tree based on the showSection expression.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@cheatsheetItem  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								syntax:
							 
						 
					
						
							
								
									
										
										
										
											2016-04-25 19:52:24 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`<li *ngFor="let item of list">` |`*ngFor`  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								description:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Turns the li element and its contents into a template, and uses that to instantiate a view for each item in list.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@cheatsheetItem  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								syntax:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-23 16:02:19 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`< div  [ ngSwitch ] = " conditionExpression " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-20 17:05:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < template  [ ngSwitchCase ] = " case1Exp " > ...< / template > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < template  ngSwitchCase = "case2LiteralString" > ...< / template > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-23 16:02:19 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < template  ngSwitchDefault > ...< / template > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-20 17:05:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								</ div > `|` [ngSwitch]`|` [ngSwitchCase]`|` ngSwitchCase`|` ngSwitchDefault` 
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								description:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of conditionExpression.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@cheatsheetItem  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								syntax:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-23 16:02:19 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`<div [ngClass]="{active: isActive, disabled: isDisabled}">` |`[ngClass]`  
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								description:
							 
						 
					
						
							
								
									
										
										
										
											2015-12-10 09:52:19 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Binds the presence of CSS classes on the element to the truthiness of the associated map values. The right-hand side expression should return {class-name: true/false} map.