Skip to content

bootstrap return values unusable after transform #3309

Closed

Description

@yjbanov

The way we rewrite calls to bootstrap makes it impossible to use it with await or even assign the result to a variable.

Example:

ApplicationRef app = await bootstrap(RootComponent, modules);

The transformer rewrites it as:

ApplicationRef app = await ngStaticInit0.initReflector();bootstrapStatic(RootComponent, modules);

This doesn't allow the user to use the app reference.

/cc @TedSander @kegluneq
ref: b/22759297

Activity

  1. self-assigned this
    on Jul 27, 2015
  2. added this to the alpha-34 milestone on Jul 27, 2015
  3. added 2 commits that reference this issue on Jul 30, 2015
    ca6327b
    2909576
  4. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions