2015-11-05 10:04:55 -05:00
|
|
|
@cheatsheetSection
|
2015-11-06 07:26:24 -05:00
|
|
|
Forms
|
2015-11-13 02:14:12 -05:00
|
|
|
@cheatsheetIndex 3
|
2015-11-05 10:04:55 -05:00
|
|
|
@description
|
2015-12-12 22:17:26 -05:00
|
|
|
{@target ts}`import {FORM_DIRECTIVES} from 'angular2/common';`{@endtarget}
|
|
|
|
{@target js}Available from `ng.common.FORM_DIRECTIVES`{@endtarget}
|
2015-12-11 18:01:37 -05:00
|
|
|
{@target dart}`import 'package:angular2/common.dart';`{@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:
|
2015-12-09 13:22:40 -05:00
|
|
|
Provides two-way data-binding, parsing and validation for form controls.
|