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