Title: Ivy: ChangeDetection not running on transplanted views · Issue #35400 · angular/angular · GitHub
Open Graph Title: Ivy: ChangeDetection not running on transplanted views · Issue #35400 · angular/angular
X Title: Ivy: ChangeDetection not running on transplanted views · Issue #35400 · angular/angular
Description: 🐞 bug report Affected Package ivy in 9.0.x Is this a regression? Yes, it fails to update templateRef in ivy, but works in VE. Description TemplateRef doesn't update in a dynamic Component created by an external js lib (ag-grid, using app...
Open Graph Description: 🐞 bug report Affected Package ivy in 9.0.x Is this a regression? Yes, it fails to update templateRef in ivy, but works in VE. Description TemplateRef doesn't update in a dynamic Component created b...
X Description: 🐞 bug report Affected Package ivy in 9.0.x Is this a regression? Yes, it fails to update templateRef in ivy, but works in VE. Description TemplateRef doesn't update in a dynamic Component creat...
Opengraph URL: https://github.com/angular/angular/issues/35400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy: ChangeDetection not running on transplanted views","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nivy in 9.0.x\r\n\r\n### Is this a regression?\r\nYes, it fails to update templateRef in ivy, but works in VE.\r\n\r\n### Description\r\nTemplateRef doesn't update in a dynamic Component created by an external js lib (ag-grid, using appendChild) in Ivy. (exemple 1)\r\n\r\nTemplateRef doesn't update in a child Component of an OnPush Component in Ivy. (exemple 2)\r\n\r\nexemple 3 & 4 work fine\r\n\r\n1. TemplateRef -> Component OnPush -> Component -> dynamic Component with ngTemplateOutlet **(fails)**\r\n2. TemplateRef -> Component OnPush -> Component with ngTemplateOutlet **(fails)**\r\n3. TemplateRef -> Component -> Component OnPush with ngTemplateOutlet **(works)**\r\n4. TemplateRef -> Component OnPush -> dynamic Component with ngTemplateOutlet **(works)**\r\n\r\n## 🔬 Minimal Reproduction\r\n1. https://stackblitz.com/edit/cdr-ivy\r\n2. https://stackblitz.com/edit/cdr-ivy-2\r\n3. https://stackblitz.com/edit/cdr-ivy-3\r\n4. https://stackblitz.com/edit/cdr-ivy-4\r\n\r\nFull example using ag-grid:\r\nhttps://github.com/antoinebrault/angular-ivy-cdr\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.3\r\nNode: 12.16.0\r\nOS: win32 x64\r\n\r\nAngular: 9.0.2\r\n... animations, common, compiler, compiler-cli, core\r\n... language-service, platform-browser, platform-browser-dynamic\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.3\r\n@angular-devkit/build-angular 0.900.3\r\n@angular-devkit/build-optimizer 0.900.3\r\n@angular-devkit/build-webpack 0.900.3\r\n@angular-devkit/core 9.0.3\r\n@angular-devkit/schematics 9.0.3\r\n@angular/cli 9.0.3\r\n@ngtools/webpack 9.0.3\r\n@schematics/angular 9.0.3\r\n@schematics/update 0.900.3\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>","author":{"url":"https://github.com/antoinebrault","@type":"Person","name":"antoinebrault"},"datePublished":"2020-02-13T03:17:28Z","url":"https://github.com/angular/angular/issues/35400"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb3386f2-7f37-c35e-4e87-eaa956451bb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9794:EA09B:D59B22:11C0ABA:6B00FFC2 |
| html-safe-nonce | 959ac7466d9e3a3138c6c53b9f0eb6d161f37a71f1f6482d722ce160751a5343 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzk0OkVBMDlCOkQ1OUIyMjoxMUMwQUJBOjZCMDBGRkMyIiwidmlzaXRvcl9pZCI6IjgyNzkzMjMxNDMwNjQwNTk4NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7551430d08de0244dce54bc1fb0c7cec0421c99cd5a697aa4162b9c12b0d63c6 |
| hovercard-subject-tag | issue:564412587 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/35400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4655de755b480dd4b58d55377afb85f2663a40232571098230cc799ff8fc6b0/angular/angular/issues/35400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4655de755b480dd4b58d55377afb85f2663a40232571098230cc799ff8fc6b0/angular/angular/issues/35400 |
| og:image:alt | 🐞 bug report Affected Package ivy in 9.0.x Is this a regression? Yes, it fails to update templateRef in ivy, but works in VE. Description TemplateRef doesn't update in a dynamic Component created b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antoinebrault |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width