Within my component, I have a template that looks like the following. When this div is clicked, the intention is to scroll to the bottom of the page.
`<section><div onclick='scrollDown()'>Goto Reports</div></section><div>`
scrollDown() {
window.scrollTo(0, 500);
}
Initially, I attempted to call a function from the onclick event and encountered a console error stating that the function was not defined.
Afterwards, I tried calling the window.scrollTo function within the onclick event, but this also did not work as intended.
Is there a way to achieve this functionality using TypeScript?