Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(forms): ngSubmit isn't an Angular directive. #3040

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/docs/ts/latest/guide/forms.jade
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ 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 `<form>` tag with another Angular directive, `NgSubmit`,
To make it useful, we'll update the `<form>` tag with another event property, `ngSubmit`,
and bind it to the `HeroFormComponent.submit()` method with an event binding
+makeExample('forms/ts/app/hero-form.component.html', 'ngSubmit')(format=".")

Expand Down Expand Up @@ -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.
- The `ngSubmit` property for handling the form submission.
- 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.
Expand Down