I want to declare two Angular routes:
- For a specific item (
/items?id=SOME_ITEM_ID) - For a list of all items (
/items)
As the following isn't working, I want to know how I can define my routes to suite my needs?
export const routes: Routes = [
{ path: 'items?id=someItemId', component: ItemComponent },
{ path: 'items', component: AllItemsComponent },
];