docs(aio): fix adding to template driven forms (#23743)

PR Close #23743
This commit is contained in:
Tomasz Kula 2018-06-11 14:27:54 +02:00 committed by Jason Aden
parent 7d6e833a6f
commit 5c0e681bf3
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ First we must create a directive that will wrap the validator function. We provi
<code-example path="form-validation/src/app/shared/identity-revealed.directive.ts" region="cross-validation-directive" title="shared/identity-revealed.directive.ts" linenums="false">
</code-example>
Next, we have to add the directive to the html template. Since the validator must be registered at the `FormGroup` level, we put the directive on the `form` tag.
Next, we have to add the directive to the html template. Since the validator must be registered at the highest level in the form, we put the directive on the `form` tag.
<code-example path="form-validation/src/app/template/hero-form-template.component.html" region="cross-validation-register-validator" title="template/hero-form-template.component.html" linenums="false">
</code-example>