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-08 17:18:50 -07:00
|
|
|
{@target js}Available from `ng.forms.FormsModule`{@endtarget}
|
2015-12-15 17:36:40 -08:00
|
|
|
{@target dart}Available using `platform_directives` in pubspec{@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:
|
2015-12-09 10:22:40 -08:00
|
|
|
Provides two-way data-binding, parsing and validation for form controls.
|