@@ -8,6 +8,7 @@ import { NativeScriptRouterModule } from "nativescript-angular/router";
8
8
import { NativeScriptFormsModule } from "nativescript-angular/forms" ;
9
9
import { NativeScriptHttpModule } from "nativescript-angular/http" ;
10
10
import {
11
+ viewUtilCategory ,
11
12
rendererTraceCategory ,
12
13
routerTraceCategory ,
13
14
listViewTraceCategory ,
@@ -18,7 +19,8 @@ import { Page } from "ui/page";
18
19
import { Color } from "color" ;
19
20
import { setCategories , enable } from "trace" ;
20
21
setCategories (
21
- `${ animationsTraceCategory } ,${ rendererTraceCategory } `
22
+ viewUtilCategory + ", " +
23
+ rendererTraceCategory
22
24
) ;
23
25
// setCategories(routerTraceCategory);
24
26
// setCategories(listViewTraceCategory);
@@ -90,11 +92,11 @@ function makeExampleModule(componentType) {
90
92
91
93
let providers = [ ] ;
92
94
if ( componentType . providers ) {
93
- providers = [ componentType . providers ] ;
95
+ providers = [ componentType . providers ] ;
94
96
}
95
97
96
98
@NgModule ( {
97
- bootstrap : [ componentType ] ,
99
+ bootstrap : [ componentType ] ,
98
100
imports,
99
101
entryComponents : entries ,
100
102
declarations : [
@@ -118,7 +120,7 @@ const customPageFactoryProvider = {
118
120
}
119
121
} ;
120
122
121
- // platformNativeScriptDynamic().bootstrapModule(makeExampleModule(RendererTest));
123
+ platformNativeScriptDynamic ( ) . bootstrapModule ( makeExampleModule ( RendererTest ) ) ;
122
124
// platformNativeScriptDynamic(undefined, [customPageFactoryProvider]).bootstrapModule(makeExampleModule(RendererTest));
123
125
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(TabViewTest));
124
126
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(Benchmark));
@@ -139,31 +141,31 @@ const customPageFactoryProvider = {
139
141
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(LoginAppComponent));
140
142
141
143
// animations
142
- platformNativeScriptDynamic ( ) . bootstrapModule ( makeExampleModule ( AnimationStatesTest ) ) ;
144
+ // platformNativeScriptDynamic().bootstrapModule(makeExampleModule(AnimationStatesTest));
143
145
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(AnimationStatesMultiTest));
144
146
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(AnimationNgClassTest));
145
147
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(AnimationKeyframesTest));
146
148
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(AnimationEnterLeaveTest));
147
149
148
150
// Livesync test
149
- let cachedUrl : string ;
150
- onBeforeLivesync . subscribe ( ( moduleRef ) => {
151
- console . log ( "------- onBeforeLivesync" ) ;
152
- if ( moduleRef ) {
153
- const router = < Router > moduleRef . injector . get ( Router ) ;
154
- cachedUrl = router . url ;
155
- console . log ( "------- Caching URL: " + cachedUrl ) ;
156
- }
157
- } ) ;
151
+ // let cachedUrl: string;
152
+ // onBeforeLivesync.subscribe((moduleRef) => {
153
+ // console.log("------- onBeforeLivesync");
154
+ // if (moduleRef) {
155
+ // const router = <Router>moduleRef.injector.get(Router);
156
+ // cachedUrl = router.url;
157
+ // console.log("------- Caching URL: " + cachedUrl);
158
+ // }
159
+ // });
158
160
159
- onAfterLivesync . subscribe ( ( moduleRef ) => {
160
- console . log ( "------- onAfterLivesync cachedUrl:" ) ;
161
- const router = < Router > moduleRef . injector . get ( Router ) ;
162
- router . events . subscribe ( e => console . log ( e . toString ( ) ) ) ;
163
- if ( router && cachedUrl ) {
164
- setTimeout ( ( ) => { router . navigateByUrl ( cachedUrl ) ; } , 0 ) ;
165
- }
166
- } ) ;
161
+ // onAfterLivesync.subscribe((moduleRef) => {
162
+ // console.log("------- onAfterLivesync cachedUrl:");
163
+ // const router = <Router>moduleRef.injector.get(Router);
164
+ // router.events.subscribe(e => console.log(e.toString()));
165
+ // if (router && cachedUrl) {
166
+ // setTimeout(() => { router.navigateByUrl(cachedUrl); }, 0);
167
+ // }
168
+ // });
167
169
168
170
// platformNativeScriptDynamic().bootstrapModule(makeExampleModule(LivesyncApp));
169
171
console . log ( "APP RESTART" ) ;
0 commit comments