title: AngularJS how to properly use ng-model as a class?
body: <p>I read the angularjs docs and it says you can use <code>ng-model</code> directive as a class like this:</p>
  
  <p><code>&lt;input class="ng-model"&gt;</code></p>
  
  <p>My issue is, I want to bind this input to a variable like <code>test</code>. How do I do this?
  I tried using </p>
  
  <p><code>&lt;input class="ng-model='test'"&gt;</code>
  <code>&lt;h1&gt;{{test}}&lt;/h1&gt;</code> </p>
  
  <p>but it's not working..</p>
  
  <p>How do I do this? Please help.</p>