-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Align ApplicationRef.bootstrap contract with createComponent function #67946
Copy link
Copy link
Open
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimefeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesneeds: discussionIndicates than an issue is an open discussionIndicates than an issue is an open discussion
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimefeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesneeds: discussionIndicates than an issue is an open discussionIndicates than an issue is an open discussion