I need to scroll to an element from inside the controller.
Using the du-smooth-scroll and the href="#invoice-wrapper" works fine on buttons and other elements inside the angular html page.
<button du-smooth-scroll href="#invoice-wrapper">
<!--Invoice Form-->
<div id="invoice-wrapper"></div>
Is there a way to activate the same thing from inside the controller?
vm.scrollTo = (element) => {
du-smooth-scroll(element)
}
Or something like that? Is there a way?