My Requirement is From Backend I am getting routes as "app/dashboard?dashboard_id={id}" How can I configure this in Module.ts file?
I tried using below
const routes: Routes = [
  {
    path: "app/dashboard/:dashboard_id",
    component: AddEditComponent,
    canActivate: [AuthGuard],
  },
];
but I am getting errors like routes are not defined.
Can Someone Please Help me on that how can I configure this route as I need to catch this id as queryParams in Component.
 
     
    