4,500
edits
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 == | ||