angular-cn/modules/angular2/docs/cheatsheet/forms.md

11 lines
269 B
Markdown

@cheatsheetSection
Forms
@cheatsheetIndex 3
@description
`import {FORM_DIRECTIVES} from 'angular2/angular2';`
@cheatsheetItem
syntax:
`<input [(ng-model)]="userName">`|`[(ng-model)]`
description:
Provides two-way data-binding, parsing and validation for form controls.