66//profiling.start('application-start');
77
88// "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" ;
1012import { Router } from "@angular/router" ;
11- import { NS_ROUTER_PROVIDERS as NS_ROUTER_PROVIDERS_DEPRECATED } from "nativescript-angular/router-deprecated" ;
1213import { NS_ROUTER_PROVIDERS } from "nativescript-angular/router" ;
1314import { HTTP_PROVIDERS } from "@angular/http" ;
1415import { rendererTraceCategory , routerTraceCategory , listViewTraceCategory } from "nativescript-angular/trace" ;
@@ -31,10 +32,6 @@ import {ModalTest} from "./examples/modal/modal-test";
3132import { PlatfromDirectivesTest } from "./examples/platform-directives/platform-directives-test" ;
3233import { LivesyncApp , LivesyncTestRouterProviders } from "./examples/livesync-test/livesync-test-app" ;
3334
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" ;
3835
3936// new router
4037import { RouterOutletAppComponent , RouterOutletRouterProviders } from "./examples/router/router-outlet-test" ;
@@ -65,13 +62,24 @@ import { AnimationStatesTest } from "./examples/animation/animation-states-test"
6562// nativeScriptBootstrap(RouterOutletAppComponent, [RouterOutletRouterProviders]);
6663// nativeScriptBootstrap(PageRouterOutletAppComponent, [PageRouterOutletRouterProviders]);
6764// nativeScriptBootstrap(PageRouterOutletNestedAppComponent, [PageRouterOutletNestedRouterProviders]);
68- nativeScriptBootstrap ( ClearHistoryAppComponent , [ ClearHistoryRouterProviders ] ) ;
65+ // nativeScriptBootstrap(ClearHistoryAppComponent, [ClearHistoryRouterProviders]);
6966// nativeScriptBootstrap(LoginAppComponent, [LoginExampleProviders]);
7067
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 ) ;
7583
7684// Livesync test
7785// var cahcedUrl: string;
0 commit comments