Last active
September 19, 2022 12:43
-
-
Save NetanelBasal/31cc8ca37b5f2b87e0255cb39799001e 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
// users.routes.ts | |
import { SvgIconRegistry } from '@ngneat/svg-icon'; | |
import { addGroupIcon, removeGroupIcon } from '@app/svg'; | |
const ICONS_INIT = attachInitEffect(() => { | |
inject(SvgIconRegistry).register([ | |
addGroupIcon, | |
removeGroupIcon | |
]) | |
}) | |
export const ROUTES = [{ | |
path: '', | |
component: UsersPageComponent, | |
// 👇👇👇 | |
providers: [ICONS_INIT] | |
}] | |
// routes.ts | |
{ | |
path: 'users', | |
loadChildren: () => import('@app/users').then(m => m.ROUTES) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment