-2
I’m new at the angle, accustomed to HTML href and just open another page, let’s get to the problem!
1 - I have a form asking for the name and a button of Ubmit
2 - I have another component which is simply a paragraph with a common title: 'My second page'
When I click the button, it goes to this second page, but what happens is that it shows on the same page, using router-outlet, as it is single page, I don’t know if it is necessary to hide the form or just redirect, everything I do it just shows on the same page after the router, someone can help me?
It was to click the button and show only the title and disappear the form.
Yeah, it’s the same way, the point is that when I click on the button, it doesn’t add up the old components, it just opens under the tag, I’d like when I click the old components to appear on the other page.
– Gustavo
Please post the code then from your
routing
and thehtml
form page– Victor Henrique