mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
[lucide-angular] Added factory to LUCIDE_ICONS injection token so that standalone components will be able to import LucideAngularModule. (#1529)
This commit is contained in:
@@ -6,7 +6,12 @@ export interface LucideIconProviderInterface {
|
||||
getIcon(name: string): LucideIconData|null;
|
||||
}
|
||||
|
||||
export const LUCIDE_ICONS = new InjectionToken<LucideIconProviderInterface>('LucideIcons');
|
||||
export const LUCIDE_ICONS = new InjectionToken<LucideIconProviderInterface>(
|
||||
'LucideIcons',
|
||||
{
|
||||
factory: () => new LucideIconProvider({})
|
||||
}
|
||||
);
|
||||
|
||||
export class LucideIconProvider implements LucideIconProviderInterface {
|
||||
constructor(private icons: LucideIcons) {
|
||||
|
||||
Reference in New Issue
Block a user