-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
30 lines (24 loc) · 962 Bytes
/
main.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
// this import should be first in order to load some required settings (like globals and reflect-metadata)
import { platformNativeScriptDynamic, NativeScriptModule } from "nativescript-angular/platform";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import {FirstComponent} from "./pages/first/first.component";
import {SecondComponent} from "./pages/second/second.component";
import {routes} from "./app.routes";
@NgModule({
declarations: [
AppComponent,
FirstComponent,
SecondComponent
],
bootstrap: [AppComponent],
imports: [
NativeScriptModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forRoot(routes)
],
})
class AppComponentModule { }
platformNativeScriptDynamic().bootstrapModule(AppComponentModule);
//NativeScriptRouterModule.forRoot(routes)