I am working with an angular md-autocomplete setup that looks like this:
<md-autocomplete md-input-id="myid" ...> </md-autocomplete>
My goal is to add an event listener like this:
document.getElementById("myid") .addEventListener("keyup", function(event) { //my code } });
I am unsure where to attach this event listener in my angular controller, especially since I am using ui.router. It seems like each page update isn't really reloading the entire page but just updating the DOM. Therefore, I believe I need an event listener that triggers when the render is complete so that I can access the element with the specified id.