Answers for "default routing in angular 11 with module"

11

generate module with routing in angular

ng g m [ModuleName] --routing
Posted by: Guest on June-30-2020
5

angular routing url params

const appRoutes: Routes = [
  { path: 'crisis-center/:param1', component: CrisisListComponent },
  { path: 'hero/:param2',      component: HeroDetailComponent },
];

@NgModule({
  imports: [
    RouterModule.forRoot(
      appRoutes,
      { enableTracing: true } // <-- debugging purposes only
    )
    // other imports here
  ],
  ...
})
export class AppModule { }
Posted by: Guest on May-07-2020

Code answers related to "default routing in angular 11 with module"

Code answers related to "Javascript"

Browse Popular Code Answers by Language