angular create app with routing code example
Example 1: angular routing example
content_copy
const routes: Routes = [
{ path: 'first-component', component: FirstComponent },
{ path: 'second-component', component: SecondComponent },
];
Example 2: angular routing example
content_copy
ng generate component second