Title: Custom Element output events not firing during initialization lifecycle hooks · Issue #36141 · angular/angular · GitHub
Open Graph Title: Custom Element output events not firing during initialization lifecycle hooks · Issue #36141 · angular/angular
X Title: Custom Element output events not firing during initialization lifecycle hooks · Issue #36141 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements Is this a regression? No Description Event listeners on Custom Element component outputs don't fire during ngOnChanges (initial call), ngOnInit, ngAfterViewIn...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements Is this a regression? No Description Event listeners on Custom Element component outputs don't fire during ngOnChanges...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements Is this a regression? No Description Event listeners on Custom Element component outputs don't fire during ngOnCha...
Opengraph URL: https://github.com/angular/angular/issues/36141
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom Element output events not firing during initialization lifecycle hooks","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/elements\r\n\r\n### Is this a regression?\r\nNo\r\n\r\n### Description\r\nEvent listeners on Custom Element component outputs don't fire during `ngOnChanges` (initial call), `ngOnInit`, `ngAfterViewInit`, or `ngAfterContentInit`.\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/antch/angular-elements-lifecycle-hooks\r\nFor both the Custom and Native element there is a list which should be appended with the fired events. For the native element, we can see the callback fires during initialization of the component, but this doesn't happen for the Custom Element.\r\n\r\nYou can look in the console to see the execution of the lifecycle hooks.\r\n\r\nThe reproduction uses artifacts from a [CI build](https://circleci.com/gh/angular/angular/657041#artifacts/containers/0) associated with #36114.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n*Warning:* This is a build off of CI assets, so this isn't entirely accurate.\r\n\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.6\r\nNode: 10.14.2\r\nOS: darwin x64\r\n\r\nAngular: 9.1.0-next.4\r\n... animations, common, compiler, compiler-cli, core, elements\r\n... forms, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.6\r\n@angular-devkit/build-angular 0.900.6\r\n@angular-devkit/build-optimizer 0.900.6\r\n@angular-devkit/build-webpack 0.900.6\r\n@angular-devkit/core 9.0.6\r\n@angular-devkit/schematics 9.0.6\r\n@angular/cli 9.0.6\r\n@ngtools/webpack 9.0.6\r\n@schematics/angular 9.0.6\r\n@schematics/update 0.900.6\r\nrxjs 6.5.4\r\ntypescript 3.6.5\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>","author":{"url":"https://github.com/antch","@type":"Person","name":"antch"},"datePublished":"2020-03-19T13:18:59Z","url":"https://github.com/angular/angular/issues/36141"}
| 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:d3e029cd-3e85-618e-4ed5-d202a23b3a97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E992:A99C2:118DB42:167E714:6B0107B5 |
| html-safe-nonce | 3bfaadd60226c38c2049bd8fa780842df48a86d8fe0fb3935149e4b765421e0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTkyOkE5OUMyOjExOERCNDI6MTY3RTcxNDo2QjAxMDdCNSIsInZpc2l0b3JfaWQiOiI3ODczNDkyMjExNTQ1OTk5Mjg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8372336524155d4872242e214338780ed1c72b6d700e2365c13e1fbfeeefe128 |
| hovercard-subject-tag | issue:584406131 |
| 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/36141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91b092dc4d4ac2815c1acfa63cb59b62e3a094711ed0292168ee694fa88e1536/angular/angular/issues/36141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91b092dc4d4ac2815c1acfa63cb59b62e3a094711ed0292168ee694fa88e1536/angular/angular/issues/36141 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/elements Is this a regression? No Description Event listeners on Custom Element component outputs don't fire during ngOnChanges... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antch |
| 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