fuse-angular/src/app/core/icons/icons.provider.ts
2024-05-27 14:06:26 +03:00

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,
},
];
};