Skip to content

nativeScriptBootstrap should probably return a promise #156

@matt4446

Description

@matt4446

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions