title: Form input validation in Angular 2(template driven)
body: <p>I would like to make these inputs to display a message such as "Name is required" when submitted(so the submit button is disabled until there is name inside). Is there perhaps a simple way to do it with Angular 2 Template Driven forms? I guess that I should provide some properties in form's HTML, and connect it to a component, but could not figure it out while following the samples in documentation. Appreciate all the help.</p>
  
  <pre><code>&lt;form class=""&gt;
      &lt;div&gt;
          &lt;p&gt;Name:&lt;/p&gt;
          &lt;input type="text"&gt;
      &lt;/div&gt;
      &lt;div class="link-input"&gt;
          &lt;p&gt;City:&lt;/p&gt;
          &lt;input type="text"&gt;
      &lt;/div&gt;
  
      &lt;button 
          (click)="submitForm()"&gt;
          Submit
      &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>