RouterLink creates a clickable link component that can be used to navigate to a view. The upside is that it’s an actual <a> element and it, for example, shows the target page when you hover the mouse over it. It’s also more accessible for people with screen readers.
But internally have some different between then? Because I have one component that run a js, and when I navigate using routerLink I my js works fine, and when I navigate using (UI.getCurrent().navigate(…)) my js dont receive the element and I got some error when try to use