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