Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

href working even with returning false in onclick

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