I make router link with string manipulation
angularRouterLink = '<a [routerLink]="[' + "'" + hrefquery[0] + "'" + ']" [queryParams]= "' + queryParamsJson + '"'+' onclick="'+onclick+'">' + displayText + '</a>';
as it is a string i added ng -dynamic-component for making it to href but in case where onclick has window.open and it also returns false in the end , the href is also triggererd along with secondary window.
so need to suppress primary window from redirecting and use only onclick in sch cases but cant override href to anything else
Comments
Post a Comment