title: Disable input on button click in angularjs
body: <p>HTML</p>
  
  <pre><code>&lt;input type="text" ng-model="email" ng-disabled="button" rquired&gt;
  &lt;a class="btn" ng-model="button"&gt;edit&lt;/a&gt;
  </code></pre>
  
  <p>So basically I want to enable the input field when the button is clicked. I could do this with some javascript but I want to figure out an easy way for this.</p>
  
  <p>The above example does not work. Any ideas why?</p>