13 lines
366 B
Markdown
Raw Normal View History

2015-11-05 15:04:55 +00:00
@cheatsheetSection
2015-11-06 12:26:24 +00:00
Forms
@cheatsheetIndex 3
2015-11-05 15:04:55 +00:00
@description
{@target js ts}`import {FORM_DIRECTIVES} from 'angular2/angular2';`{@endtarget}
{@target dart}`import 'package:angular2/angular2.dart';`{@endtarget}
2015-11-05 15:04:55 +00:00
@cheatsheetItem
syntax:
2015-11-06 12:26:24 +00:00
`<input [(ng-model)]="userName">`|`[(ng-model)]`
description:
Provides two-way data-binding, parsing and validation for form controls.