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

248 B

@cheatsheetSection Forms @cheatsheetIndex 3 @description import {FORM_DIRECTIVES} from 'angular2/angular2';

@cheatsheetItem <input [(ng-model)]="userName">|[(ng-model)] Provides two-way data-binding, parsing and validation for form controls.