Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to navigate from one page to another in angular

const routes: Routes = [
  { path:'', component:LoginComponent},
  { path: 'home', component:HomeComponent },  // you must add your component here
  { path: '**', component:PageNotFoundComponent }
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #navigate #page #angular
ADD COMMENT
Topic
Name
9+8 =