angular-cn/docs/content/cheatsheet/forms.md

362 B

@cheatsheetSection Forms @cheatsheetIndex 4 @description {@target ts}import { FormsModule } from '@angular/forms';{@endtarget} {@target js}Available using the ng.forms.FormsModule module{@endtarget}

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