Simplify Routing Parameters in Angular Components
Configure Route and RouterLink:
I defined my app routes using :id to represent the parameter and component SampleComponent…:
const APP_ROUTES: Route[] = [
{
path: 'sample-1/:id',
component: SampleComponent1,
},
{
path: 'sample...
nhannguyen.hashnode.dev3 min read