Title: TemplateRef passed into other component not checked under Ivy · Issue #33393 · angular/angular · GitHub
Open Graph Title: TemplateRef passed into other component not checked under Ivy · Issue #33393 · angular/angular
X Title: TemplateRef passed into other component not checked under Ivy · Issue #33393 · angular/angular
Description: 🐞 bug report Affected Package angular 9 with ivy Is this a regression? yes Description I check the Ivy Minor Change docs here https://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xfeIvIIzgg/preview and found that If a tem...
Open Graph Description: 🐞 bug report Affected Package angular 9 with ivy Is this a regression? yes Description I check the Ivy Minor Change docs here https://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xf...
X Description: 🐞 bug report Affected Package angular 9 with ivy Is this a regression? yes Description I check the Ivy Minor Change docs here https://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xf...
Opengraph URL: https://github.com/angular/angular/issues/33393
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TemplateRef passed into other component not checked under Ivy","articleBody":"🐞 bug report\r\n\r\n### Affected Package\r\n\r\nangular 9 with ivy\r\n\r\n### Is this a regression?\r\nyes\r\n\r\n### Description\r\nI check the Ivy Minor Change docs here\r\n\r\nhttps://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xfeIvIIzgg/preview\r\n\r\nand found that\r\n\r\n>If a template is declared in one view but inserted into a different view, change detection will occur for that template only when its insertion point is checked (previously, change detection would also run when its declaration point was checked). \r\n\r\nIt will bring lots of break changes to our UI library when upgrading it to angular 9 with ivy, because of many components' input support both `string` and `TemplateRef\u003cany>` type, and all components are working under **OnPush** mode.\r\n\r\nWhen the user passes a TemplateRef with a variable to the component, the template inside the component won't update any longer even if the variable has changed outside the component, which is a very common situation.\r\n\r\n\r\nFor example\r\n\r\nthe select API here: https://ng.ant.design/components/select/en#api\r\n\r\nProperty | Description | Type | Default\r\n-- | -- | -- | --\r\n[nzNotFoundContent] | Specify content to show when no result matches.. | string \\| `TemplateRef\u003cvoid>` | 'Not Found'\r\n\r\nThe feature comes from a directive here: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/core/addon/string_template_outlet.ts#L24 which brought a lot of convenience to the user.\r\n\r\n\r\nI wonder if it is possible to keep the same as the previous version of the template check behavior\r\n\r\n\r\nThanks a lot\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nit works with angular 8 in the stackblitz, but not work under 9.0.0-next\r\n\r\nhttps://stackblitz.com/edit/angular-99qln5?file=src/app/hello.component.ts\r\n\r\nI could not enable ivy in stackblitz, so there is no online repro here.\r\nDownload and upgrade all `@angular/*`, you can find the name inside the component is `Angular`, but the outside name is `Angular Next` after 3 sec.\r\n\r\n\r\n## 🔥 Exception or Error\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n@angular-devkit/architect 0.900.0-next.15\r\n@angular-devkit/build-angular 0.900.0-next.15\r\n@angular-devkit/build-optimizer 0.900.0-next.15\r\n@angular-devkit/build-webpack 0.900.0-next.15\r\n@angular-devkit/core 9.0.0-next.15\r\n@angular-devkit/schematics 9.0.0-next.15\r\n@angular/cli 9.0.0-next.15\r\n@ngtools/webpack 9.0.0-next.15\r\n@schematics/angular 9.0.0-next.15\r\n@schematics/update 0.900.0-next.15\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n","author":{"url":"https://github.com/vthinkxie","@type":"Person","name":"vthinkxie"},"datePublished":"2019-10-25T07:15:15Z","url":"https://github.com/angular/angular/issues/33393"}
| 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:5db528b1-3f04-0b8c-65be-4a5bc00f8965 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC3E:17FB7:57CEB0:6E9DD2:6B010F8D |
| html-safe-nonce | 1c0d477fa75e219dc896fc7fff8826865b22aea4f1e1dc95f9a4af0300ec2818 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzNFOjE3RkI3OjU3Q0VCMDo2RTlERDI6NkIwMTBGOEQiLCJ2aXNpdG9yX2lkIjoiMTY3OTk5MzU4MzY2MDI0MDc4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c1f86b532ee0e3a1b0a0b17ce4013bd3569f6dee88d0ed3c6f6132e7b61d8492 |
| hovercard-subject-tag | issue:512345705 |
| 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/33393/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cd0dacc590c76583e1243b53f1336ddba45f52bea32401cb875ea9b92124a7c/angular/angular/issues/33393 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cd0dacc590c76583e1243b53f1336ddba45f52bea32401cb875ea9b92124a7c/angular/angular/issues/33393 |
| og:image:alt | 🐞 bug report Affected Package angular 9 with ivy Is this a regression? yes Description I check the Ivy Minor Change docs here https://docs.google.com/document/d/1Dije0AsJ0PxL3NaeNPxpYDeapj30b_QC0xf... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vthinkxie |
| 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