title: Angular2 - Uncaught ReferenceError: onInputChange is not defined at HTMLInputElement.onchange
body: <blockquote>
    <p>Uncaught ReferenceError: onInputChange is not defined
        at HTMLInputElement.onchange </p>
  </blockquote>
  
  <p>I am looking at the code...,my lord the function exists.  And yet I get the above?  WOW..why? I just want to fire an event if html changes in input</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;input mdInput [formControlName]="i" onchange="onInputChange()"
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>onInputChange(){
  
      console.log('DUDE');
  }
  </code></pre>