I have an <input type="file">
in ng-repeat and I want to call a function whenever the value of element changes for the <input type="file">
element in ng-repeat.
I tried calling a $(#"id").change()
function but it is not working. I have tried using ng-change, but ng-repeat doesnt work when I use ng-change. This is my code:
IN HTML
<div ng-repeat="item in items">
<input type="file" accept="image/*" id="add_{{$index}}"/>
</div>
IN JS
$("#add_images").change(function() {
alert("HI");
}