Working on an Angular application that requires me to create an image slider. However, due to the presence of router links in the application, the anchor tags in the image slider keep redirecting. I want to prevent this redirection and instead successfully call the JavaScript function to slide the images. Any suggestions on how to achieve this?