mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
37 lines
833 B
TypeScript
37 lines
833 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Akveo. All Rights Reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*/
|
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { HeaderMenuService } from './service/header-menu.service';
|
|
import { ReviewsService } from './service/reviews.service';
|
|
import { DescriptionsService } from './service/descriptions.service';
|
|
|
|
const SERVICES = [
|
|
HeaderMenuService,
|
|
ReviewsService,
|
|
DescriptionsService,
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
],
|
|
providers: [
|
|
...SERVICES,
|
|
],
|
|
})
|
|
export class DataModule {
|
|
static forRoot(): ModuleWithProviders {
|
|
return <ModuleWithProviders>{
|
|
ngModule: DataModule,
|
|
providers: [
|
|
...SERVICES,
|
|
],
|
|
};
|
|
}
|
|
}
|