Рет қаралды 22,702
We have learned how to navigate around between different views using routerLink which we can add on any clickable HTML element. However, it is also possible to navigate between two routes / views programmatically using navigate() method.
The navigate method is provided by Router class in angular which needs to be imported from @angular/router. To this navigate method we can pass different parameters.
In this lecture we will learn how to use navigate method and pass a route path to it to navigate around.
DOWNLOAD SECTION SOURCE CODE HERE: drive.google.c...