From 7a8bd99ab1ba98a5593fba961d7872c1adcba47c Mon Sep 17 00:00:00 2001 From: Natalie Sidhom Date: Fri, 21 Apr 2017 13:37:28 -0700 Subject: [PATCH] docs(aio): correct some minor typos in the form validation cookbook (#16068) --- aio/content/guide/form-validation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/guide/form-validation.md b/aio/content/guide/form-validation.md index a576427cfc..cfcb69661d 100644 --- a/aio/content/guide/form-validation.md +++ b/aio/content/guide/form-validation.md @@ -530,7 +530,7 @@ The optional second value is a validator function or an array of validator funct Most of the validator functions are stock validators provided by Angular as static methods of the `Validators` class. Angular has stock validators that correspond to the standard HTML validation attributes. -The `forbiddenNames` validator on the `"name"` control is a custom validator, +The `forbiddenName` validator on the `"name"` control is a custom validator, discussed in a separate [section below](guide/form-validation#custom-validation). @@ -626,11 +626,11 @@ and to compare all of the files in this cookbook sample. ## Custom validation -This cookbook sample has a custom `forbiddenNamevalidator()` function that's applied to both the +This cookbook sample has a custom `forbiddenNameValidator()` function that's applied to both the template-driven and the reactive form controls. It's in the `src/app/shared` folder and declared in the `SharedModule`. -Here's the `forbiddenNamevalidator()` function: +Here's the `forbiddenNameValidator()` function: @@ -752,4 +752,4 @@ write asynchronous tests, and interact with the DOM. While not difficult, this takes more time, work and skill—factors that tend to diminish test code -coverage and quality. \ No newline at end of file +coverage and quality.