6
6
//profiling.start('application-start');
7
7
8
8
// "nativescript-angular/application" import should be first in order to load some required settings (like globals and reflect-metadata)
9
- import { nativeScriptBootstrap , onAfterLivesync , onBeforeLivesync } from "nativescript-angular/application" ;
9
+ //import { nativeScriptBootstrap, onAfterLivesync, onBeforeLivesync} from "nativescript-angular/application";
10
+ import { NativeScriptModule , platformNativeScriptDynamic } from "nativescript-angular/platform" ;
11
+ import { NgModule } from "@angular/core" ;
10
12
import { Router } from "@angular/router" ;
11
- import { NS_ROUTER_PROVIDERS as NS_ROUTER_PROVIDERS_DEPRECATED } from "nativescript-angular/router-deprecated" ;
12
13
import { NS_ROUTER_PROVIDERS } from "nativescript-angular/router" ;
13
14
import { HTTP_PROVIDERS } from "@angular/http" ;
14
15
import { rendererTraceCategory , routerTraceCategory , listViewTraceCategory } from "nativescript-angular/trace" ;
@@ -31,10 +32,6 @@ import {ModalTest} from "./examples/modal/modal-test";
31
32
import { PlatfromDirectivesTest } from "./examples/platform-directives/platform-directives-test" ;
32
33
import { LivesyncApp , LivesyncTestRouterProviders } from "./examples/livesync-test/livesync-test-app" ;
33
34
34
- // router-deprecated
35
- import { NavigationTest } from "./examples/router-deprecated/navigation-test" ;
36
- import { RouterOutletTest } from "./examples/router-deprecated/router-outlet-test" ;
37
- import { LoginTest } from "./examples/router-deprecated/login-test" ;
38
35
39
36
// new router
40
37
import { RouterOutletAppComponent , RouterOutletRouterProviders } from "./examples/router/router-outlet-test" ;
@@ -65,13 +62,24 @@ import { AnimationStatesTest } from "./examples/animation/animation-states-test"
65
62
// nativeScriptBootstrap(RouterOutletAppComponent, [RouterOutletRouterProviders]);
66
63
// nativeScriptBootstrap(PageRouterOutletAppComponent, [PageRouterOutletRouterProviders]);
67
64
// nativeScriptBootstrap(PageRouterOutletNestedAppComponent, [PageRouterOutletNestedRouterProviders]);
68
- nativeScriptBootstrap ( ClearHistoryAppComponent , [ ClearHistoryRouterProviders ] ) ;
65
+ // nativeScriptBootstrap(ClearHistoryAppComponent, [ClearHistoryRouterProviders]);
69
66
// nativeScriptBootstrap(LoginAppComponent, [LoginExampleProviders]);
70
67
71
- // router-deprecated
72
- // nativeScriptBootstrap(NavigationTest, [NS_ROUTER_PROVIDERS_DEPRECATED]);
73
- // nativeScriptBootstrap(RouterOutletTest, [NS_ROUTER_PROVIDERS_DEPRECATED]);
74
- // nativeScriptBootstrap(LoginTest, [NS_ROUTER_PROVIDERS_DEPRECATED]);
68
+ @NgModule ( {
69
+ bootstrap : [
70
+ RendererTest
71
+ ] ,
72
+ declarations : [
73
+ RendererTest
74
+ ] ,
75
+ imports : [
76
+ NativeScriptModule ,
77
+ ] ,
78
+ providers : [ ]
79
+ } )
80
+ class RendererTestModule { }
81
+
82
+ platformNativeScriptDynamic ( ) . bootstrapModule ( RendererTestModule ) ;
75
83
76
84
// Livesync test
77
85
// var cahcedUrl: string;
0 commit comments