X Tutup
Skip to content

bootstrap return values unusable after transform #3309

@yjbanov

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup