/
services.module.ts
51 lines (45 loc) · 1.84 KB
/
services.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { ModuleWithProviders, NgModule } from '@angular/core';
import { UserResource } from './resources/user.resource';
import { LabelResource } from './resources/label.resource';
import { LanguageResource } from './resources/language.resource';
import { SnippetResource } from './resources/snippet.resource';
import { FileResource } from './resources/file.resource';
import { TeamResource } from './resources/team.resource';
import { ActiveFilterService } from './navigation/activeFilter.service';
import { SnippetLoaderService } from './navigation/snippetLoader.service';
import { AvailableLanguagesService } from './navigation/availableLanguages.service';
import { AvailableLabelsService } from './navigation/availableLabels.service';
import { AuthResource } from "./resources/auth.resource";
import { ActiveScopeService } from "./navigation/activeScope.service";
import { UserTeamResource } from "./resources/userteam.resource";
import { SnippetLabelResource } from "./resources/snippetlabel.resource";
import { LoadingScreenService } from "./loading-screen/loading-screen.service";
@NgModule({
imports: [],
exports: [],
declarations: [],
providers: [/* declare in `forRoot()` */],
})
export class ServicesModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: ServicesModule,
providers: [
AuthResource,
UserResource,
LabelResource,
LanguageResource,
SnippetResource,
FileResource,
TeamResource,
UserTeamResource,
SnippetLabelResource,
ActiveFilterService,
SnippetLoaderService,
AvailableLanguagesService,
AvailableLabelsService,
ActiveScopeService,
]
};
}
}