moya-rest.module.ts
1.05 KB
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
import {NgModule, ModuleWithProviders, NgZone} from '@angular/core';
import { CommonModule } from '@angular/common';
import {HttpModule} from "@angular/http";
import {MoyaRestService} from "./services/moya-rest.service";
import {ViplistService} from "./services/viplist.service";
import {CacheService} from "./services/cache.service";
import {UserService} from "./services/user.service";
export * from "./services/moya-rest.service";
export * from "./services/viplist.service";
export * from "./services/cache.service";
export * from "./services/user.service";
export * from "./models/user.model";
export * from "./models/vip.model";
export * from "./models/vip-product.model";
export * from "./models/vip-product-delivery.model";
@NgModule({
imports: [
CommonModule,
HttpModule
],
declarations: []
})
export class MoyaRestModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: MoyaRestModule,
providers: [
MoyaRestService,
ViplistService,
CacheService,
UserService
]
};
}
}