Title: Queries for content that is manually projected into views is out of date. · Issue #15117 · angular/angular · GitHub
Open Graph Title: Queries for content that is manually projected into views is out of date. · Issue #15117 · angular/angular
X Title: Queries for content that is manually projected into views is out of date. · Issue #15117 · angular/angular
Description: @Component({ selector: 'auto-projecting', template: '' }) class AutoProjecting { @ContentChild(TemplateRef) content: TemplateRef
Open Graph Description: @Component({ selector: 'auto-projecting', template: '' }) class AutoProjecting { @ContentChild(TemplateRef) content: TemplateRef
X Description: @Component({ selector: 'auto-projecting', template: '<div *ngIf="true; then: content"></div>' }) class AutoProjecting { @ContentChild(TemplateRef) content: Tem...
Opengraph URL: https://github.com/angular/angular/issues/15117
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Queries for content that is manually projected into views is out of date.","articleBody":"```\r\n@Component({\r\n selector: 'auto-projecting',\r\n template: '\u003cdiv *ngIf=\"true; then: content\">\u003c/div>'\r\n})\r\nclass AutoProjecting {\r\n @ContentChild(TemplateRef)\r\n content: TemplateRef\u003cany>;\r\n\r\n @ContentChildren(TextDirective)\r\n query: QueryList\u003cTextDirective>;\r\n}\r\n\r\n@Directive({selector: '[text]'})\r\nclass TextDirective { \r\n @Input() text: string;\r\n}\r\n\r\n@Component({\r\n template: `\r\n \u003cauto-projecting>\u003cng-template>\u003cdiv [text]=\"1\">\u003c/div>\u003c/ng-template>\u003c/auto-projecting>\r\n `\r\n})\r\nclass MainComp {}\r\n```\r\n\r\nThis fails in that after the first change detection, `AutoProjecting.query` has length 0.\r\n","author":{"url":"https://github.com/tbosch","@type":"Person","name":"tbosch"},"datePublished":"2017-03-13T17:56:47Z","url":"https://github.com/angular/angular/issues/15117"}
| 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:00059808-a3e4-dd48-ba54-b8f7b222f8d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C17C:95C88:1707F52:1E6FA10:6B01342A |
| html-safe-nonce | e54ad308614d27884de90a26a30264af64771f389d9becfbbf0bcf9808491950 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTdDOjk1Qzg4OjE3MDdGNTI6MUU2RkExMDo2QjAxMzQyQSIsInZpc2l0b3JfaWQiOiI4NTc4NTA5NDUyNTA2OTAzNTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | decacd67b8b019b3911fb6c99628782b44a8e9faca26e84d6b6581f15d932897 |
| hovercard-subject-tag | issue:213848524 |
| 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/15117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd7579c336b76421dd9dce68fd965ddaea635b7e042801c727bdb124b9192806/angular/angular/issues/15117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd7579c336b76421dd9dce68fd965ddaea635b7e042801c727bdb124b9192806/angular/angular/issues/15117 |
| og:image:alt | @Component({ selector: 'auto-projecting', template: '' }) class AutoProjecting { @ContentChild(TemplateRef) content: TemplateRef |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tbosch |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width