Created
May 19, 2022 05:47
-
-
Save NetanelBasal/e5eb0181d4b69429870e795d275079b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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