Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created May 19, 2022 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/e5eb0181d4b69429870e795d275079b0 to your computer and use it in GitHub Desktop.
Save NetanelBasal/e5eb0181d4b69429870e795d275079b0 to your computer and use it in GitHub Desktop.
export const todosRoutes: Routes = [
{
path: '',
loadComponent: () =>
import('./todos-page.component').then((m) => m.TodosPageComponent),
providers: [
{
provide: ENVIRONMENT_INITIALIZER,
multi: true,
useValue() {
inject(TodosService).init();
},
},
],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment