create a angular component 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
import { FirstComponent } from './first/first.component';
import { SecondComponent } from './second/second.component';