-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathapp.module.ts
66 lines (61 loc) · 1.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import {
NgModule,
NO_ERRORS_SCHEMA,
NgModuleFactoryLoader,
APP_INITIALIZER
} from "@angular/core";
import { NativeScriptModule } from "@nativescript/angular";
import { NativeScriptAnimationsModule } from "@nativescript/angular/animations";
import { NSModuleFactoryLoader } from "@nativescript/angular/router";
import { AppRoutingModule } from "./app.routing";
import { AnimationsListComponent } from "./animations-list.component";
import { AnimationBuilderComponent } from "./animation-builder.component";
import { ExternalAnimationComponent } from "./external-animation.component";
import { FadeInOutComponent } from "./fade-in-out.component";
import { OptionsComponent } from "./options.component";
import { OptionsDefaultComponent } from "./options-default.component";
import { AnimateChildComponent } from "./animate-child.component";
import { SelectorAllComponent } from "./selector-all.component";
import { QueryStaggerComponent } from "./query-stagger.component";
import { AppComponent } from "./app.component";
export function asyncBoot(): Function {
return (): Promise<any> => new Promise(resolve => {
setTimeout(() => {
resolve();
}, 2000);
})
}
@NgModule({
bootstrap: [
AppComponent,
],
declarations: [
AppComponent,
AnimationsListComponent,
AnimationBuilderComponent,
ExternalAnimationComponent,
FadeInOutComponent,
OptionsComponent,
OptionsDefaultComponent,
AnimateChildComponent,
SelectorAllComponent,
QueryStaggerComponent,
],
imports: [
NativeScriptModule,
NativeScriptAnimationsModule,
AppRoutingModule,
],
/**
* Uncomment to test APP_INITIALIZER
*/
// providers: [
// {
// provide: APP_INITIALIZER,
// useFactory: asyncBoot,
// multi: true
// },
// ],
schemas: [NO_ERRORS_SCHEMA],
})
export class AppModule {}