Title: Cannot attach animation trigger using @HostBinding - renderer is undefined · Issue #35501 · angular/angular · GitHub
Open Graph Title: Cannot attach animation trigger using @HostBinding - renderer is undefined · Issue #35501 · angular/angular
X Title: Cannot attach animation trigger using @HostBinding - renderer is undefined · Issue #35501 · angular/angular
Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Open Graph Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
X Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot attach animation trigger using @HostBinding - renderer is undefined","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\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\nangular/core ?\r\nExactly similar to this issue here - https://github.com/angular/angular/issues/35342, however i am able to reproduce it with Angular - 9.0.1\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\nYes, works as expected in Angular 8.x\r\n\r\n\r\n### Description\r\n\r\nUsing the `@HostBinding` decorator to attach animation triggers to the host element does not work.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nPlease create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-issue-repro2\r\n-->\r\n1) Clone this repo https://github.com/greyskulll/angular-animation-directive-hostbinding-issue\r\n2) `ng serve` and check the browser console\r\n\r\nIn short, using `@HostBinding('@\u003canimation trigger name>')` fails\r\n\r\n## 🔥 Exception or Error\r\nIn Chrome\r\n\u003cpre>\u003ccode>\r\ncore.js:5845 ERROR TypeError: Cannot read property 'listen' of undefined\r\n at isProceduralRenderer (core.js:4338)\r\n at elementPropertyInternal (core.js:12342)\r\n at Module.ɵɵupdateSyntheticHostBinding (core.js:25196)\r\n at SmoothHeightChangeDirective_HostBindings (uik-smooth-height-change.directive.ts:6)\r\n at setHostBindingsByExecutingExpandoInstructions (core.js:11385)\r\n at refreshView (core.js:11752)\r\n at refreshComponent (core.js:13145)\r\n at refreshChildComponents (core.js:11436)\r\n at refreshView (core.js:11757)\r\n at renderComponentOrTemplate (core.js:11831)\r\n\u003c/code>\u003c/pre>\r\n\r\nIn Firefox\r\n\u003cpre>\u003ccode>\r\nERROR TypeError: \"renderer is undefined\"\r\n Angular 3\r\n isProceduralRenderer\r\n elementPropertyInternal\r\n updateSyntheticHostBinding\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n\r\n\r\nAngular CLI: 9.0.2\r\nNode: 12.14.1\r\nOS: darwin x64\r\n\r\nAngular: 9.0.1\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.2\r\n@angular-devkit/build-angular 0.900.2\r\n@angular-devkit/build-optimizer 0.900.2\r\n@angular-devkit/build-webpack 0.900.2\r\n@angular-devkit/core 9.0.2\r\n@angular-devkit/schematics 9.0.2\r\n@angular/cli 9.0.2\r\n@ngtools/webpack 9.0.2\r\n@schematics/angular 9.0.2\r\n@schematics/update 0.900.2\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.2\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nWas working as expected prior to IVY.\r\n","author":{"url":"https://github.com/greyskulll","@type":"Person","name":"greyskulll"},"datePublished":"2020-02-17T14:54:30Z","url":"https://github.com/angular/angular/issues/35501"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:e1f6133d-e7f2-a6af-ca2e-2be98c8f8a74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8134:1F8F:49F8EA:609A01:6B0116AD |
| html-safe-nonce | ba873c28c377f375527d88ba62c5a0459ad406d7d607cddb5c1d215d4fddbbf8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTM0OjFGOEY6NDlGOEVBOjYwOUEwMTo2QjAxMTZBRCIsInZpc2l0b3JfaWQiOiI1NDYwMTU4ODYyNTQxNzg4ODQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a33d0e2447d0dedca7926f8103cde79db16b86bd0fa379c5ff9d49463b98470f |
| hovercard-subject-tag | repository:24195339 |
| 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/angular/angular/issues/35501 |
| twitter:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| og:image:alt | Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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