| 
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 |  |  | @cheatsheetSection | 
					
						
							| 
									
										
										
										
											2015-11-06 12:26:24 +00:00
										 |  |  | Forms | 
					
						
							| 
									
										
										
										
											2016-08-08 17:18:50 -07:00
										 |  |  | @cheatsheetIndex 4 | 
					
						
							| 
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 |  |  | @description | 
					
						
							| 
									
										
										
										
											2016-08-09 02:25:42 +02:00
										 |  |  | {@target ts}`import { FormsModule } from '@angular/forms';`{@endtarget} | 
					
						
							| 
									
										
										
										
											2016-08-25 20:12:23 +02:00
										 |  |  | {@target js}Available using the `ng.forms.FormsModule` module{@endtarget} | 
					
						
							| 
									
										
										
										
											2015-11-05 15:04:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | @cheatsheetItem | 
					
						
							| 
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 |  |  | syntax: | 
					
						
							| 
									
										
										
										
											2015-11-23 16:02:19 -08:00
										 |  |  | `<input [(ngModel)]="userName">`|`[(ngModel)]` | 
					
						
							| 
									
										
										
										
											2015-12-09 12:33:42 +00:00
										 |  |  | description: | 
					
						
							| 
									
										
										
										
											2016-09-01 12:06:42 -07:00
										 |  |  | Provides two-way data-binding, parsing, and validation for form controls. |