title: How to get ngForm variable reference in the component class?
body: <p>Given the following...</p>
  <h2>.html</h2>
  <pre><code>&lt;form (ngSubmit) = &quot;onSubmit()&quot;
            #heroForm = &quot;ngForm&quot;&gt;
        {{diagnostic}}
        &lt;div class = &quot;form-group&quot;&gt;
          &lt;label for = &quot;name&quot;&gt;Name&lt;/label&gt;
          &lt;input type = &quot;text&quot;
                 class = &quot;form-control&quot;
                 required
                 [(ngModel)] = &quot;model.name&quot;
                 ngControl = &quot;name&quot;
                 #name = &quot;ngForm&quot;
                 #spy&gt;
          &lt;p *ngIf = &quot;name.dirty&quot;
             class = &quot;alert alert-danger&quot;&gt;
            Name is required
          &lt;/p&gt;
          &lt;!--&lt;p [hidden] = &quot;name.dirty&quot;--&gt;
             &lt;!--class = &quot;alert alert-danger&quot;&gt;--&gt;
            &lt;!--Name is required--&gt;
          &lt;!--&lt;/p&gt;--&gt;
        &lt;/div&gt;
  </code></pre>
  <p>..</p>
  <p>..is it possible to get the <code>#name = &quot;ngForm&quot;</code> (ngForm) reference in the .dart component to allow manipulation? Any suggestion and correction is welcome.</p>