Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(guide/Forms): clarify ngModel behavior for validation #9866

Closed
wants to merge 1 commit 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
3 changes: 3 additions & 0 deletions docs/content/guide/forms.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ for other directives to augment its behavior.

Note that `novalidate` is used to disable browser's native form validation.

The value of `ngModel` won't be set unless it passes validation for the input field.
For example: inputs of type `email` must have a value in the form of `user@domain`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a good idea to mention that this default behaviour can be overriden via ngModelOptions' allowInvalid.



# Using CSS classes
Expand Down