Title: ivy: accessing undefined ViewChild properly with elvis operator in template breaks · Issue #34087 · angular/angular · GitHub
Open Graph Title: ivy: accessing undefined ViewChild properly with elvis operator in template breaks · Issue #34087 · angular/angular
X Title: ivy: accessing undefined ViewChild properly with elvis operator in template breaks · Issue #34087 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, works fine in v8 Description If I add a ViewChild decorator to an undefined component in a template and try and access it using the elv...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, works fine in v8 Description If I add a ViewChild decorator to an undefined component in a temp...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, works fine in v8 Description If I add a ViewChild decorator to an undefined component in a temp...
Opengraph URL: https://github.com/angular/angular/issues/34087
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ivy: accessing undefined ViewChild properly with elvis operator in template breaks","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/core\r\n\r\n\r\n### Is this a regression?\r\nYes, works fine in v8\r\n\r\n### Description\r\nIf I add a `ViewChild` decorator to an undefined component in a template and try and access it using the elvis operator in a template then the expression breaks and nothing is outputted in the template.\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/mattlewis92/ivy-view-child-accesssor-bug/blob/master/src/app/app.component.html#L1\r\n\r\nWhere foo is:\r\nhttps://github.com/mattlewis92/ivy-view-child-accesssor-bug/blob/master/src/app/app.component.ts#L11\r\n\r\n## 🔥 Exception or Error\r\nThere is no error, it fails silently to render:\r\n\r\n\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-rc.3\r\nNode: 12.10.0\r\nOS: darwin x64\r\nAngular: 9.0.0-rc.3\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.3\r\n@angular-devkit/build-angular 0.900.0-rc.3\r\n@angular-devkit/build-optimizer 0.900.0-rc.3\r\n@angular-devkit/build-webpack 0.900.0-rc.3\r\n@angular-devkit/core 9.0.0-rc.3\r\n@angular-devkit/schematics 9.0.0-rc.3\r\n@ngtools/webpack 9.0.0-rc.3\r\n@schematics/angular 9.0.0-rc.3\r\n@schematics/update 0.900.0-rc.3\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nNope","author":{"url":"https://github.com/mattlewis92","@type":"Person","name":"mattlewis92"},"datePublished":"2019-11-27T15:51:45Z","url":"https://github.com/angular/angular/issues/34087"}
| 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:46be53a1-1c38-57a3-8c68-aa853ba2aefd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE18:DB09F:170EF39:1D6EB14:6B013FAB |
| html-safe-nonce | 58b3f2fc4dc3d759001658a4e50cce5359c6d3e88725cf1608797ce54de5856d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTE4OkRCMDlGOjE3MEVGMzk6MUQ2RUIxNDo2QjAxM0ZBQiIsInZpc2l0b3JfaWQiOiIxNjAzMDUwMDg5NjM4Mjk2NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74e8ca0025f56cc73b9b2509873907816187c63ec728ae5efae7801995a2fcf2 |
| hovercard-subject-tag | issue:529432288 |
| 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/34087/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed09db38b86c6e48838f416eca3ca867cda59a2caf96687d78374e1455523669/angular/angular/issues/34087 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed09db38b86c6e48838f416eca3ca867cda59a2caf96687d78374e1455523669/angular/angular/issues/34087 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, works fine in v8 Description If I add a ViewChild decorator to an undefined component in a temp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattlewis92 |
| 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