Router is part of which of the following module?Select one:a. None of the choicesb. @angular/routerc. Both of the Optionsd. @angular/core code example

Example 1: angular router navigate

// Here’s a basic example using the navigate method:

goPlaces() {
  this.router.navigate(['/', 'page-name']);
}

/*
I hope it will help you.
Namaste
*/

Example 2: home page routing in angular

const routes: Routes = [
  { path: 'home_page_path', component: HomePageComponent }

];
add this in app routing file
/*
I Hope it will Help You.
Namaste _/\_
*/

Tags:

Html Example