I'm new to Angular2 and I have been having some doubts about routes.
I'm using Angular Material and I have 2 forms: Login and Signup. When I click Submit in one of those forms I want to be redirected to a component called Portal.
This is my structure and each component has its own module:
- App
- Form
- Login
- Signup
- Portal
- Form
I thought I could make it work with routerLink but I realized soon enough that it wasn´t possible. I know that I have to pass some event to the ngSubmit, but I'm not sure what...
If someone could explain me the process and guide me through the steps, I'd be very thankful.
Thank you.