424 B
424 B
@cheatsheetSection
Forms
@cheatsheetIndex 3
@description
{@target ts}import {FORM_DIRECTIVES} from 'angular2/common';
{@endtarget}
{@target js}Available from ng.common.FORM_DIRECTIVES
{@endtarget}
{@target dart}import 'package:angular2/common.dart';
{@endtarget}
@cheatsheetItem
syntax:
<input [(ngModel)]="userName">
|[(ngModel)]
description:
Provides two-way data-binding, parsing and validation for form controls.