Is there a callback that we can use when the router is done loading the template?
My problem is about the scroll when there are a lot of messages in the Messages page template.
I was able to fix it by using
window.scrollTo(0,document.querySelector(".page-content").scrollHeight);
It scrolls to the bottom of the page.
Там целая цепочка событий, на форуме была небольшая статья по событиям. Вам больше подойдет pageAfterIn
Translated @shastox
There is a whole chain of events, the forum had a small article on events. PageAfterIn is more suitable for you
Thanks.
Can you share the link please.