<button ng-click="controller.foo()">Click<button>
is functioning properly.
However,
<input type="file" ng-model="logo" onchange="controller.foo()">
seems to be malfunctioning. Additionally,
<input type="file" ng-model="logo" ng-change="controller.foo()">
is also not working as expected.
The error message I receive for the first one that is not working:
product-page4:1 Uncaught ReferenceError: controller is not defined at HTMLInputElement.onchange (product-page4:1)
As for the second one, there is no response at all.
Any suggestions on how to make this function properly for the input
element?