-There's the hero again, displayed read-only with interpolation bindings.
-This `
` appears only while the component is in the submitted state.
+ This `
`, which shows a read-only hero with interpolation bindings, appears only while the component is in the submitted state.
-The HTML includes an *Edit* button whose click event is bound to an expression
+ The alternative display includes an *Edit* button whose click event is bound to an expression
that clears the `submitted` flag.
-When you click the *Edit* button, this block disappears and the editable form reappears.
+3. Click the *Edit* button to switch the display back to the editable form.
## Summary
The Angular form discussed in this page takes advantage of the following
-framework features to provide support for data modification, validation, and more:
+framework features to provide support for data modification, validation, and more.
* An Angular HTML form template.
* A form component class with a `@Component` decorator.
@@ -700,8 +510,8 @@ framework features to provide support for data modification, validation, and mor
* Template-reference variables such as `#heroForm` and `#name`.
* `[(ngModel)]` syntax for two-way data binding.
* The use of `name` attributes for validation and form-element change tracking.
-* The reference variable’s `valid` property on input controls to check if a control is valid and show/hide error messages.
-* Controlling the *Submit* button's enabled state by binding to `NgForm` validity.
+* The reference variable’s `valid` property on input controls to check if a control is valid and show or hide error messages.
+* Controlling the **Submit** button's enabled state by binding to `NgForm` validity.
* Custom CSS classes that provide visual feedback to users about invalid controls.
Here’s the code for the final version of the application:
@@ -741,4 +551,3 @@ Here’s the code for the final version of the application:
-
diff --git a/aio/content/images/guide/forms/control-state-transitions-anim.gif b/aio/content/images/guide/forms/control-state-transitions-anim.gif
deleted file mode 100644
index 48ce7805af..0000000000
Binary files a/aio/content/images/guide/forms/control-state-transitions-anim.gif and /dev/null differ
diff --git a/aio/content/images/guide/forms/ng-control-class-changes.png b/aio/content/images/guide/forms/ng-control-class-changes.png
deleted file mode 100644
index 0cb4911389..0000000000
Binary files a/aio/content/images/guide/forms/ng-control-class-changes.png and /dev/null differ
diff --git a/aio/content/navigation.json b/aio/content/navigation.json
index 3307eaadb0..7edde58064 100644
--- a/aio/content/navigation.json
+++ b/aio/content/navigation.json
@@ -254,11 +254,6 @@
"title": "Reactive Forms",
"tooltip": "Create a reactive form using FormBuilder, groups, and arrays."
},
- {
- "url": "guide/forms",
- "title": "Template-driven Forms",
- "tooltip": "Create a template-driven form using directives and Angular template syntax."
- },
{
"url": "guide/form-validation",
"title": "Validate form input",
@@ -749,6 +744,11 @@
"url": "guide/router-tutorial",
"title": "Using Angular Routes in a Single-page Application",
"tooltip": "A tutorial that covers many patterns associated with Angular routing."
+ },
+ {
+ "url": "guide/forms",
+ "title": "Building a Template-driven Form",
+ "tooltip": "Create a template-driven form using directives and Angular template syntax."
}
]
},