I have an angular md-autocomplete like this:
<md-autocomplete md-input-id="myid" ...> </md-autocomplete>
And I want to do this:
document.getElementById("myid") .addEventListener("keyup", function(event) { //my code } });
Where can I attach that event listener in my angular controller? I am using ui.router. It seems like each page isn't a real new page but just the dom updating. So I think I need an event listener for when that render is complete so that I can access the element with the id.