mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-04 07:31:38 +00:00
18 lines
417 B
TypeScript
18 lines
417 B
TypeScript
import {
|
|
ENVIRONMENT_INITIALIZER,
|
|
EnvironmentProviders,
|
|
inject,
|
|
Provider,
|
|
} from '@angular/core';
|
|
import { IconsService } from 'app/core/icons/icons.service';
|
|
|
|
export const provideIcons = (): Array<Provider | EnvironmentProviders> => {
|
|
return [
|
|
{
|
|
provide: ENVIRONMENT_INITIALIZER,
|
|
useValue: () => inject(IconsService),
|
|
multi: true,
|
|
},
|
|
];
|
|
};
|