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