fix(elements): run strategy methods in correct zone (#37814)

Default change detection fails in some cases for @angular/elements where
component events are called from the wrong zone.

This fixes the issue by running all ComponentNgElementStrategy methods
in the same zone it was created in.

Fixes #24181

PR Close #37814
This commit is contained in:
remackgeek
2020-06-28 17:18:19 -07:00
committed by Michael Prentice
parent 2e0973a814
commit e72267bc00
3 changed files with 108 additions and 45 deletions

View File

@ -12,7 +12,7 @@
"master": {
"uncompressed": {
"runtime-es2015": 2987,
"main-es2015": 450301,
"main-es2015": 450596,
"polyfills-es2015": 52630
}
}
@ -21,7 +21,7 @@
"master": {
"uncompressed": {
"runtime-es2015": 3097,
"main-es2015": 429200,
"main-es2015": 429885,
"polyfills-es2015": 52195
}
}