-
-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Description
Angular 2 bootstrap - returns Promise<ComponentRef>
NativeScript's Angular2 bootstrap implementation - returns Promise<ComponentRef>
NativeScript's nativeScriptBootstrap implementation returns void.
I expect the sample projects and documentation will continue to prefer the nativeScriptBootstrap function to start the application. What I believe to be missing from nativeScriptBootstrap is that it should return a Promise<ComponentRef> just as the bootstrap method does, which will make the following possible and add flexibility if needed:
nativeScriptBootstrap(startComponent).then((appRef : ComponentRef) => {});
Metadata
Metadata
Assignees
Labels
No labels