G
G
Galdar Turin2021-10-15 16:33:12
Angular
Galdar Turin, 2021-10-15 16:33:12

How to solve the problem with opening a second window?

Good afternoon. I installed such a transition when I clicked on the button. But the trick is that instead of opening a new window with this address, the main page window opens. For some reason it works on localhost:4200 but not on the domain. What could be the reason, I already removed the canActivate routan, it's still such crap.
window.open('/product', '_blank')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lssssssssssl, 2021-10-15
@lsssssssssl

Write the full url instead of "/product". For example, window.open(" https://www.google.com/product ", "_blank")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question