in Angular by
What does a router.navigate do?

1 Answer

0 votes
by

When we want to route to a component we use router.navigate.  Syntax: this.router.navigate([‘/component_name’]); 

Related questions

0 votes
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Dec 12, 2020 in Angular by SakshiSharma
0 votes
asked Feb 15, 2020 in Angular by matthenary
0 votes
asked Jun 6, 2022 in Angular by john ganales
...