-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathapp.module.ts
51 lines (48 loc) · 1.59 KB
/
app.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 { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { APP_BASE_HREF } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { ServiceWorkerModule } from '@angular/service-worker';
import { AppComponent } from './app.component';
import { environment } from '../environments/environment';
import { MnFullpageModule } from './fullpage';
import { LazyLoadImageModule } from './lazyload';
import { LazyBackgroundDirective } from './lazyload-background/lazyload-background';
import { LazyloadDirective } from './lazyload-background/lazyload-image';
import { DialogComponent } from './dialog/dialog';
import { DanmuItemComponent } from './danmus/danmu-item';
import { NoticeBarModule } from 'ng-antd-mobile-notice-bar';
import { BASE_SRC } from './lazyload-background/lazyload-background';
import { ListModule, InputItemModule } from 'ng-antd-mobile';
@NgModule({
declarations: [
AppComponent,
LazyBackgroundDirective,
DanmuItemComponent,
LazyloadDirective,
DialogComponent
],
imports: [
BrowserModule,
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }),
LazyLoadImageModule,
MnFullpageModule.forRoot(),
HttpClientModule,
NoticeBarModule,
ListModule,
InputItemModule
],
providers: [
{
provide: APP_BASE_HREF,
useValue: './'
},
{
provide: BASE_SRC,
useValue: '../addons/meepo_hunli/template/mobile/'
}
],
entryComponents: [DanmuItemComponent],
bootstrap: [AppComponent]
})
export class AppModule { }