diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade index be16d9ed6c..8522961e6e 100644 --- a/public/docs/ts/latest/guide/forms.jade +++ b/public/docs/ts/latest/guide/forms.jade @@ -557,8 +557,32 @@ figure.image-display The form remembers that we entered a name before clicking *New Hero*. Replacing the hero object *did not restore the pristine state* of the form controls. - We have to clear all of the flags imperatively which we can do - by calling the form's `reset()` method after calling the `newHero()` method. + We have to tell the form to clear all of its flags. But to do that, we need some sort of reference to it: +code-example(language="html"). + <form #heroForm="ngForm"> + +:marked + This defines a template reference variable, **`#heroForm`**, and initializes it with the + value, "ngForm". The variable `heroForm` will become a reference to the `NgForm` directive + that governs the form as a whole. + +:marked + +.l-sub-section + :marked + ### The _NgForm_ directive + What `NgForm` directive? We didn't add an [NgForm](../api/forms/index/NgForm-directive.html) directive! + + Angular did. Angular creates and attaches an `NgForm` directive to the `