Power is required
@@ -46,12 +46,18 @@
-
-
+
-
-
+
+ with reset
+
+
+
+
+
+ without reset
+
@@ -126,7 +132,7 @@
@@ -165,7 +171,7 @@
@@ -178,12 +184,12 @@
-
+
TODO: remove this: {{model.name}}
-
+
-
-
-
-
-
-
-
-
` tag for each power in the list of Powers.
- The `p` template input variable is a different power in each iteration;
+ The `pow` template input variable is a different power in each iteration;
we display its name using the interpolation syntax with the double-curly-braces.
.l-main-section
:marked
- ## Two-way data binding with **ngModel**
+ ## Two-way data binding with **_ngModel_**
Running the app right now would be disappointing.
figure.image-display
img(src="/resources/images/devguide/forms/hero-form-3.png" width="400px" alt="Early form with no binding")
:marked
We don't see hero data because we are not binding to the `Hero` yet.
- We know how to do that from earlier chapters.
+ We know how to do that from earlier guides.
[Displaying Data](./displaying-data.html) taught us Property Binding.
[User Input](./user-input.html) showed us how to listen for DOM events with an
Event Binding and how to update a component property with the displayed value.
@@ -295,7 +295,7 @@ figure.image-display
Find the `` tag for the "Name" and update it like this
-+makeExample('forms/ts/app/hero-form.component.html', 'ngModel-1','app/hero-form.component.html (excerpt)')(format=".")
++makeExample('forms/ts/app/hero-form.component.html', 'ngModelName-1','app/hero-form.component.html (excerpt)')(format=".")
.l-sub-section
:marked
@@ -324,13 +324,13 @@ figure.image-display
:marked
Internally Angular creates `FormControls` and registers them with an `NgForm` directive that Angular
attached to the `