From f302146ccd409f22171de7a8dc392a9ef0ad5d90 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Sat, 31 Dec 2016 10:33:30 -0800 Subject: [PATCH] docs(forms): ngSubmit is an output property of NgForm directive (#3056) incorporates and closes PR #3040 --- public/docs/ts/latest/guide/forms.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade index de03784ef1..e955c6efe8 100644 --- a/public/docs/ts/latest/guide/forms.jade +++ b/public/docs/ts/latest/guide/forms.jade @@ -575,8 +575,8 @@ figure.image-display trigger a form submit because of its type (`type="submit"`). A "form submit" is useless at the moment. - To make it useful, we'll update the `
` tag with another Angular directive, `NgSubmit`, - and bind it to the `HeroFormComponent.submit()` method with an event binding + To make it useful, bind the `NgForm` directive's `ngSubmit` event property (in the `` tag) + to the `HeroFormComponent.submit()` method: +makeExample('forms/ts/app/hero-form.component.html', 'ngSubmit')(format=".") :marked @@ -671,7 +671,7 @@ figure.image-display - An Angular HTML form template. - A form component class with a `Component` decorator. - - The `ngSubmit` directive for handling the form submission. + - Handling form submission by binding to the `NgForm.ngSubmit` event property. - Template reference variables such as `#heroForm`, `#name` and `#power`. - The `[(ngModel)]` syntax and a `name` attribute for two-way data binding, validation and change tracking. - The reference variable’s `valid` property on input controls to check if a control is valid and show/hide error messages.