1

Is there a way to open an Angular component in a new tab? This is just for printing purposes, and the new tab won't have any functionality like buttons or functions that refer back to the Angular program. I literally just want to open a component in a new tab so that we can print things cleanly and easily.

I am open for any solutions, but the less 3rd party stuff the better.

Paul Kruger
  • 2,094
  • 7
  • 22
  • 49
  • Possible duplicate of [Angular 2 Routing run in new tab](https://stackoverflow.com/questions/41355830/angular-2-routing-run-in-new-tab) – Immad Hamid Jul 18 '18 at 09:54

2 Answers2

4

To expand Deepender's suggestion, Use target attribute set to _blank like this,

<a target="_blank" routerLink="/Router_Link_your_print_page">

Hope this helps!

David R
  • 14,711
  • 7
  • 54
  • 72
-1

create that component and open its router link in new tab.

Deepender Sharma
  • 460
  • 1
  • 5
  • 25