In my Angular 4 project, I have developed a custom sidebar library and integrated it into the main project. My current issue is that I want to provide the option for users to "open in new tab/window" from the browser's context menu without having the full page reload when a user clicks on a link within the same page.
<a routerLink="['/{menu.href}']" routerLinkActive="active" [ngClass]="{'router-link-active text-primary' : chileMenuId === cmenu.id }" (click)="onMenuClick(cmenu)">{{cmenu.labelKey}}</a>
Unfortunately, this functionality is not working in the sidebar project because it is part of a third-party library. Is there a way to achieve this? Thanks