xxxxxxxxxx
Angular - >
ng generate module [module-name] --routing
or
ng g m [module-name] --rounting
xxxxxxxxxx
content_copy
const routes: Routes = [
{ path: 'first-component', component: FirstComponent },
{ path: 'second-component', component: SecondComponent },
];
xxxxxxxxxx
content_copy
import { FirstComponent } from './first/first.component';
import { SecondComponent } from './second/second.component';