title: How to call function after change input
body: <p>Using Angular 1.6</p>
  <p>I´m trying to call some function like <code>$scope.myFunction</code> after change inputs</p>
  <p>My code look like this</p>
  <pre><code>&lt;md-input-container class=&quot;col-sm-12 md-block no-left-padding&quot;&gt;
                          &lt;label&gt;Name&lt;/label&gt;
                          &lt;input name=&quot;name&quot; ng-model=&quot;name&quot; onfocusout=&quot;myFunction()&quot;&gt;
  &lt;/md-input-container&gt;
  </code></pre>
  <p>I´m getting this error when I unfocus the input</p>
  <pre><code>Uncaught ReferenceError: myFunction is not defined
      at HTMLInputElement.onfocusout
  </code></pre>