diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade index cce48b54b5..f6f43cc633 100644 --- a/public/docs/ts/latest/guide/forms.jade +++ b/public/docs/ts/latest/guide/forms.jade @@ -17,17 +17,17 @@ include ../_util-fns We will build a simple form from scratch, one step at a time. Along the way we'll learn - - How to build an Angular form with a component and template + - to build an Angular form with a component and template - - The `ngModel` two-way data binding syntax for reading and writing values to input controls + - two-way data binding with `[(ngModel)]` syntax for reading and writing values to input controls - - The `ngControl` directive to track the change state and validity of form controls + - using `ngControl` to track the change state and validity of form controls - - The special CSS classes that `ngControl` adds to form controls and how we can use them to provide strong visual feedback + - the special CSS classes that `ngControl` adds to form controls and how we can use them to provide strong visual feedback - - How to display validation errors to users and enable/disable form controls + - displaying validation errors to users and enable/disable form controls - - How to share information across controls with template local variables + - sharing information among controls with template local variables [Live Example](/resources/live-examples/forms/ts/plnkr.html) .l-main-section @@ -75,7 +75,7 @@ figure.image-display 1. Create the `Hero` model class 1. Create the component that controls the form 1. Create a template with the initial form layout - 1. Add the **ngModel** directive to each form input control + 1. Bind data properties to each form input control with the `ngModel` two-way data binding syntax 1. Add the **ngControl** directive to each form input control 1. Add custom CSS to provide visual feedback 1. Show and hide validation error messages @@ -240,7 +240,7 @@ ol .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 @@ -255,7 +255,7 @@ figure.image-display Now we need to display, listen, and extract at the same time. We could use those techniques again in our form. - Instead we'll introduce something new, the `NgModel` directive, that + Instead we'll introduce something new, the `[(ngModel)]` syntax, that makes binding our form to the model super-easy. Find the `` tag for the "Name" and update it like this @@ -349,41 +349,43 @@ figure.image-display ## Track change-state and validity with **ngControl** A form isn't just about data binding. We'd also like to know the state of the controls on our form. - The `NgControl` directive keeps track of control state for us. -.callout.is-helpful - header NgControl requires Form - :marked - The `NgControl` is one of a family of `NgForm` directives that can only be applied to - a control within a `