1

I am creating an angular application.

In that, I want to open the child window. and also want to do communication between parent and child browser.

Vikrant
  • 4,920
  • 17
  • 48
  • 72
  • 2
    Possible duplicate of [Angular component in a Browser's child window](https://stackoverflow.com/questions/53646015/angular-component-in-a-browsers-child-window) – joshwilsonvu Sep 09 '19 at 17:18
  • i have published an angular library, npm package, that does what you need - "popout any part of your Angular application into a new un-docked browser child window" check it out - https://www.npmjs.com/package/angular-popout-window – shemesh Nov 24 '20 at 15:39

1 Answers1

3

Try to this:

window.open('url', '200', '200');

another way

<a [routerLink]="['/your-component']" target="_blank">

Open other component in new tab.

Bansi29
  • 1,053
  • 6
  • 24
  • let childWindowRefernece = window.open('url', '200', '200'); to handle or close child window from parent window – Amit Rai Sep 12 '19 at 09:35