Title: Better error messages when an `@Output` property is not initialized. · Issue #3664 · angular/angular · GitHub
Open Graph Title: Better error messages when an `@Output` property is not initialized. · Issue #3664 · angular/angular
X Title: Better error messages when an `@Output` property is not initialized. · Issue #3664 · angular/angular
Description: Related: #3754 (should be fixed together) Listing an event in a directive without creating an associated EventEmitter instance results in cryptic error: TypeError: Cannot read property 'observer' of undefined at Function.ObservableWrappe...
Open Graph Description: Related: #3754 (should be fixed together) Listing an event in a directive without creating an associated EventEmitter instance results in cryptic error: TypeError: Cannot read property 'observer' o...
X Description: Related: #3754 (should be fixed together) Listing an event in a directive without creating an associated EventEmitter instance results in cryptic error: TypeError: Cannot read property 'observe...
Opengraph URL: https://github.com/angular/angular/issues/3664
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better error messages when an `@Output` property is not initialized.","articleBody":"Related: #3754 (should be fixed together)\r\n\r\nListing an event in a directive without creating an associated `EventEmitter` instance results in cryptic error:\r\n\r\n> TypeError: Cannot read property 'observer' of undefined\r\n> at Function.ObservableWrapper.subscribe (angular2.js:19403)\r\n> at EventEmitterAccessor.subscribe (angular2.js:26062)\r\n> at AppViewManagerUtils._setUpEventEmitters (angular2.js:20932)\r\n> at AppViewManagerUtils._hydrateView (angular2.js:20896)\r\n> at AppViewManagerUtils.hydrateRootHostView (angular2.js:20814)\r\n> at AppViewManager.createRootHostView (angular2.js:23990)\r\n> at angular2.js:13594\r\n> at Zone.run (zone.js:113)\r\n> at Zone.run (angular2.js:12928)\r\n> at zoneBoundFn (zone.js:86)\r\n\r\nTo reproduce:\r\n\r\n``` java\r\n@Directive({\r\n selector: '[foo]'\r\n})\r\nclass Foo {\r\n @Output() foo; // not initialized to = new EventEmitter();\r\n}\r\n```\r\n","author":{"url":"https://github.com/pkozlowski-opensource","@type":"Person","name":"pkozlowski-opensource"},"datePublished":"2015-08-15T17:13:06Z","url":"https://github.com/angular/angular/issues/3664"}
| 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:d3141753-a71b-0bda-197f-8fa330832e25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B476:29AEE8:118EAAC:176F501:6B011B7F |
| html-safe-nonce | 16c5d1db81c6e54f862e707457251fefa16611596247e46b7ec20ec787bfac38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDc2OjI5QUVFODoxMThFQUFDOjE3NkY1MDE6NkIwMTFCN0YiLCJ2aXNpdG9yX2lkIjoiMjMxMDUwMDQ0MzQ3OTkzOTk2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 74b8fa1b046a047d6977f9c97d325641cd6376eb8d7fe9a3c1f660a9681f436d |
| hovercard-subject-tag | issue:101190599 |
| 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/3664/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b9adad391ff9fa502fea5374d629acef8a1b8cecfe3834316e7a73026e5f9fb/angular/angular/issues/3664 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b9adad391ff9fa502fea5374d629acef8a1b8cecfe3834316e7a73026e5f9fb/angular/angular/issues/3664 |
| og:image:alt | Related: #3754 (should be fixed together) Listing an event in a directive without creating an associated EventEmitter instance results in cryptic error: TypeError: Cannot read property 'observer' o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pkozlowski-opensource |
| 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