Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Last active September 19, 2022 12:43
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/31cc8ca37b5f2b87e0255cb39799001e to your computer and use it in GitHub Desktop.
Save NetanelBasal/31cc8ca37b5f2b87e0255cb39799001e to your computer and use it in GitHub Desktop.
// 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