@@ -155,20 +155,25 @@ export class NativeScriptPlatformRef extends PlatformRef {
155
155
156
156
const navEntry : NavigationEntry = {
157
157
create : ( ) : Page => {
158
- let page = pageFactory ( { isBootstrap : true , isLivesync } ) ;
158
+ const page = pageFactory ( { isBootstrap : true , isLivesync } ) ;
159
159
setRootPage ( page ) ;
160
160
if ( this . appOptions ) {
161
161
page . actionBarHidden = this . appOptions . startPageActionBarHidden ;
162
162
}
163
163
164
- let initHandler = profile ( "nativescript-angular/platform-common.initHandler" , function ( ) {
164
+ const initHandlerMethodName =
165
+ "nativescript-angular/platform-common.initHandler" ;
166
+ const initHandler = profile ( initHandlerMethodName , ( ) => {
165
167
page . off ( Page . navigatingToEvent , initHandler ) ;
166
168
// profiling.stop("application-start");
167
169
rendererLog ( "Page loaded" ) ;
168
170
169
171
// profiling.start("ng-bootstrap");
170
172
rendererLog ( "BOOTSTRAPPING..." ) ;
171
- bootstrapAction ( ) . then ( profile ( "nativescript-angular/platform-common.postBootstrapAction" , ( moduleRef ) => {
173
+
174
+ const bootstrapMethodName =
175
+ "nativescript-angular/platform-common.postBootstrapAction" ;
176
+ bootstrapAction ( ) . then ( profile ( bootstrapMethodName , moduleRef => {
172
177
// profiling.stop("ng-bootstrap");
173
178
rendererLog ( "ANGULAR BOOTSTRAP DONE." ) ;
174
179
lastBootstrappedModule = new WeakRef ( moduleRef ) ;
@@ -177,9 +182,9 @@ export class NativeScriptPlatformRef extends PlatformRef {
177
182
resolve ( moduleRef ) ;
178
183
}
179
184
return moduleRef ;
180
- } ) , ( err ) => {
185
+ } ) , err => {
181
186
rendererError ( "ERROR BOOTSTRAPPING ANGULAR" ) ;
182
- let errorMessage = err . message + "\n\n" + err . stack ;
187
+ const errorMessage = err . message + "\n\n" + err . stack ;
183
188
rendererError ( errorMessage ) ;
184
189
185
190
let view = new TextView ( ) ;
0 commit comments