mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
362 B
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.