I am Using html input which gets changed via an External Js file. The input field is used to filter a list of table.
Very Basically I have: JavaScript
<script>
document.getElementById('search').value = returnCountry("China");
</script>
Html
<input type="text" id="search" ng-model="query">
So when the JavaScript is run it populates the input field but angular is not picking up that a change is being made and is not filtering. The filter works fine if you type or if you paste it in.