2015-11-05 15:04:55 +00:00
|
|
|
@cheatsheetSection
|
2015-11-06 12:26:24 +00:00
|
|
|
Forms
|
2015-11-13 07:14:12 +00:00
|
|
|
@cheatsheetIndex 3
|
2015-11-05 15:04:55 +00:00
|
|
|
@description
|
2016-06-26 16:31:35 +02:00
|
|
|
{@target ts}`import {FORM_DIRECTIVES} from '@angular/common';`{@endtarget}
|
2015-12-12 21:17:26 -06:00
|
|
|
{@target js}Available from `ng.common.FORM_DIRECTIVES`{@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.
|