I have a div holding some chat history. I would like for the div content to scroll when it becomes full. I have this working using jQuery in another p
div
For the first issue you can use Timer.run to defer the scroll execution :
Timer.run(() => elt.scrollTop = elt.scrollHeight);
For the second issue you can inject the Element managed by your controller and use querySelector on it :
querySelector
MyController(Element e) : elt = e.querySelector('.chatHistory');