diff --git a/packages/lucide-angular/src/lib/lucide-icon.provider.ts b/packages/lucide-angular/src/lib/lucide-icon.provider.ts index 7549c3c89..ce4fcc5e4 100644 --- a/packages/lucide-angular/src/lib/lucide-icon.provider.ts +++ b/packages/lucide-angular/src/lib/lucide-icon.provider.ts @@ -6,7 +6,12 @@ export interface LucideIconProviderInterface { getIcon(name: string): LucideIconData|null; } -export const LUCIDE_ICONS = new InjectionToken('LucideIcons'); +export const LUCIDE_ICONS = new InjectionToken( + 'LucideIcons', + { + factory: () => new LucideIconProvider({}) + } +); export class LucideIconProvider implements LucideIconProviderInterface { constructor(private icons: LucideIcons) {