Skip to content

Align ApplicationRef.bootstrap contract with createComponent function #67946

@AndrewKushnir

Description

@AndrewKushnir

Currently, the ApplicationRef.bootstrap function (link) has a different (more limited) set of arguments and we can extend it to support directives and bindings in a way similar to the createComponent function (link). For symmetry, it'd be great to have the ApplicationRef.bootstrap function take 2 arguments:

  • Component (or component factory for backwards compatibility) as the first argument
  • Config object (similar to createComponent, but more limited) as the second argument

The tricky part would be to support the second argument in the proposed shape, since currently the second argument of the ApplicationRef.bootstrap function might be an object as well. This might require a breaking change and a migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimefeatureLabel used to distinguish feature request from other issuesneeds: discussionIndicates than an issue is an open discussion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions