angular/modules/@angular/docs/cheatsheet/forms.md

14 lines
422 B
Markdown
Raw Normal View History

2015-11-05 15:04:55 +00:00
@cheatsheetSection
2015-11-06 12:26:24 +00:00
Forms
@cheatsheetIndex 4
2015-11-05 15:04:55 +00:00
@description
{@target ts}`import {FormsModule} from '@angular/forms';`{@endtarget}
{@target js}Available from `ng.forms.FormsModule`{@endtarget}
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
2015-11-05 15:04:55 +00:00
@cheatsheetItem
syntax:
`<input [(ngModel)]="userName">`|`[(ngModel)]`
description:
Provides two-way data-binding, parsing and validation for form controls.