title: Call a function from input's onchange
body: <p>I'm using controller as syntax.</p>
  
  <p>And when my file input changed, i want to trigger a function.</p>
  
  <p>how to do that?</p>
  
  <p>below is my code with $scope syntax</p>
  
  <pre><code>&lt;input class="upload" type="file" accept="image/*" ng-model="image"
                  onchange="angular.element(this).scope().uploadImage(this)"&gt;
  </code></pre>