angular/packages/core/src
Andrew Kushnir 9118f49a63 fix(core): cleanup DOM elements when root view is removed (#37600)
Currently when bootstrapped component is being removed using `ComponentRef.destroy` or `NgModuleRef.destroy` methods, DOM nodes may be retained in the DOM tree. This commit fixes that problem by always attaching host element of the internal root view to the component's host view node, so the cleanup can happen correctly.

Resolves #36449.

PR Close #37600
2020-06-25 14:34:35 -07:00
..
change_detection refactor(core): remove looseIdentical in favor of built-in Object.is (#37191) 2020-06-01 17:19:17 -04:00
compiler docs(core): fix path referenced in comments of both compiler facade interface files (#37370) 2020-06-09 08:28:26 -07:00
debug build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
di docs(core): remove v10 mention from @Injectable warning (#37383) 2020-06-02 17:30:58 -04:00
i18n build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
interface docs: add example links to 'DoCheck' lifeycle hook docs (#36574) 2020-06-11 11:09:58 -07:00
linker build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
metadata docs(core): correct type for opts.read (#37626) 2020-06-18 16:04:09 -07:00
reflection build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
render build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
render3 fix(core): cleanup DOM elements when root view is removed (#37600) 2020-06-25 14:34:35 -07:00
sanitization build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
testability build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
util refactor(core): remove looseIdentical in favor of built-in Object.is (#37191) 2020-06-01 17:19:17 -04:00
view refactor(core): remove looseIdentical in favor of built-in Object.is (#37191) 2020-06-01 17:19:17 -04:00
zone fix(core): should fake a top event task when coalescing events to prevent draining microTaskQueue too early. (#36841) 2020-06-11 18:54:22 -07:00
application_init.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
application_module.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
application_ref.ts docs: update api ref doc for platform browser (#37186) 2020-06-11 18:59:12 -07:00
application_tokens.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
change_detection.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
codegen_private_exports.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
console.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
core.externs.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
core.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
core_private_export.ts refactor(core): remove looseIdentical in favor of built-in Object.is (#37191) 2020-06-01 17:19:17 -04:00
core_render3_private_export.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
di.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
error_handler.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
errors.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
event_emitter.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ivy_switch.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
linker.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
metadata.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
platform_core_providers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_symbols.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
render.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
zone.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00