AngularJS v1.5.8
<input type="file" onchange="angular.element(this).scope().uploadImage()" />
$scope.uploadImage = function(){
alert("change");
}
error in console:
Uncaught TypeError: Cannot read property 'uploadImage' of undefined at HTMLInputElement.onchange