title: How can i assign formValidity as value of a HTML5 element that is two way binded by ngModel
body: <p>I have to pass the <code>boolean</code> value gotten from <code>myForm.valid</code> to my Angular 2 component. It is a template driven form. Getting it in the component by means of two-way binding is what I want to achieve. The code below doesn't work. How can I get the value of <code>myForm.valid</code> to my Angular 2 component? </p>
  
  <pre><code>&lt;form #myForm=“ngForm"&gt;
  .
  .
  &lt;input type="hidden" id="isValid" name="isValid" [(ngModel)]="isValid" value="myForm.valid"/&gt;
  .
  .
  &lt;/form&gt;
  </code></pre>