No provider for ChildrenOutletContexts code example
Example 1: No provider for ChildrenOutletContexts
imports: [RouterModule.forRoot(routes)],
Example 2: No provider for ChildrenOutletContexts Angular
imports: [RouterModule.forRoot(routes)], // use forRoot instead of forChild(routes)
// forRoot for app-routing.module and forChild for the other modules