feat(core): add ApplicationRef.destroy method#45624
feat(core): add ApplicationRef.destroy method#45624AndrewKushnir wants to merge 1 commit intoangular:masterfrom
ApplicationRef.destroy method#45624Conversation
93c9643 to
13dfa8b
Compare
|
Presubmit (TGP). |
13dfa8b to
5e94964
Compare
There was a problem hiding this comment.
Note to reviewers: the payload size in this PR is expected (due to extra non-tree-shakable code that was added). It's ~350 bytes and the rest was accumulated already from other changes.
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: size-tracking, public-api
dylhunn
left a comment
There was a problem hiding this comment.
reviewed-for: public-api, size-tracking
e2dfb62 to
43e9f67
Compare
43e9f67 to
2ebd2b0
Compare
2ebd2b0 to
ae66f3c
Compare
ae66f3c to
819558c
Compare
a343cb0 to
acaa26c
Compare
packages/core/src/application_ref.ts
Outdated
There was a problem hiding this comment.
Rather than track this._destroyed, we should delegate to injector.destroyed.
936b555 to
8b30b0f
Compare
This commit implements the `destroy` method on the `ApplicationRef` class. This feature is a preparation for the new logic to bootstrap (and teardown) standalone components (without going through the `NgModuleRef` destroy), which would return an instance of the `ApplicationRef` (the current bootstrap APIs return an instance of the `NgModuleRef`).
8b30b0f to
3cf03fe
Compare
|
Presubmit after the rebase. |
|
This PR was merged into the repository by commit 174ce7d. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit implements the
destroymethod on theApplicationRefclass. This feature is a preparation for the new logic to bootstrap (and teardown) standalone components (without going through theNgModuleRefdestroy), which would return an instance of theApplicationRef(the current bootstrap APIs return an instance of theNgModuleRef).PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?