Angular 2: Difference between revisions

Jump to navigation Jump to search
303 bytes added ,  12 April 2016
add Forms > Control
add Forms > Control
Line 1: Line 1:
== Forms ==
=== Control ===
<syntaxhighlight lang="typescript">
let nameControl = new Control("Test");
let name = nameControl.value;
nameControl.errors; nameControl.dirty; nameControl.valid;
</syntaxhighlight>
<syntaxhighlight lang="html">
<input type="text" ngControl="name"/>
</syntaxhighlight>
== Built-in Components ==
== Built-in Components ==


Navigation menu