Home > Software design >  how to navigate one page to another in Agular
how to navigate one page to another in Agular

Time:09-21

I have an Angular project and I want to go to the registration page when I click the registration button. I tried to link the registration page, but it didn't work, I'm a beginner, that is, when I click on registration, I want the main page to disappear and go to the navigation page. add path and componentname liken this

after yout component.ts File Import Router from @angular core

this.router.navigate(['pathname'])

  • Related