content_copy
const routes: Routes = [
{ path: 'first-component', component: FirstComponent },
{ path: 'second-component', component: SecondComponent },
];
ng new frontend --routing=true
content_copy
ng generate component first
ng new project-name --routing=true
content_copy
import { FirstComponent } from './first/first.component';
import { SecondComponent } from './second/second.component';
content_copy
ng generate component second
content_copy
ng generate component heroes-list
content_copy
ng generate component heroes-list