My click event:
html:
<div class="image" (click)="onClickOperation(product);">
.......
</div>
TS:
onClickOperation(product: any): void {
// debugger
if (this.regularView) {
if (this.details) {
this.openLightbox(product);
} else {
this.router.navigate(['/product', product.productId]);
}
} else {
this.router.navigate(['/store', product.shopId]);
this.productsender.changeMessage(product);
}
}
its working fine how I want to implement right click to open link in new tab option .how can I do it need