I'm currently working on incorporating the option for users to open a link in a new tab. I'm trying to avoid using the (click) method, so I've come up with the following logic to achieve this:
<a [routerLink]="['/search/' + search.id]" [queryParams]="getQueryParams()">Destination</a>
The issue I'm facing is that the getQueryParams()
function is being called every time, causing the app to slow down significantly. Is there a way to avoid calling this method every time? Additionally, I'm also open to exploring alternative methods to implement the open in a new tab functionality without relying on the (click)
event?