1.

What does a router.navigate do?

Answer»

The Router.navigate is USED to specify a root URL through relative navigation. Here’s a function USING the above to navigate through DIFFERENT ARTICLES in Angular:

Example

gotoDetails(articleId: any) {
   this.router.navigate(['/blog/', blogId]);
}



Discussion

No Comment Found