Title: Support event type information for tools. · Issue #4862 · angular/angular · GitHub
Open Graph Title: Support event type information for tools. · Issue #4862 · angular/angular
X Title: Support event type information for tools. · Issue #4862 · angular/angular
Description: Assume that the user has typed: Open Graph Description: Assume that the user has typed: X Description: Assume that the user has typed: <component (click)="$event.?A?" (open)="$event.?B?" How does the IDE know how to complete the suggestions at ?A? and ?B? sites? Turns out that...
Opengraph URL: https://github.com/angular/angular/issues/4862
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support event type information for tools.","articleBody":"Assume that the user has typed:\n\n```\n\u003ccomponent (click)=\"$event.?A?\" (open)=\"$event.?B?\"\n```\n\nHow does the IDE know how to complete the suggestions at `?A?` and `?B?` sites?\n\nTurns out that `?A?` is a DOM event and as such there is no easy way to know what the type of `$event` is other than having the IDE recognize that it is a DOM event. This implies that the IDE needs to have pre-existing schema. Such schema (#3426) is something that Angular2 compiler needs to have as well so that we can properly validate weather or not a particular element can event a particular DOM event. (Examples is `input` element emitting a change event). The goal should be to have the event schema for DOM be declared in a way which is tool-able so that tools can take advantage of it.\n\nCompletion on `?B?` is of different kind, it is an event which is fired from the `component` element and which does not bubble. In such a case we have to look at the directive annotation so that we can derive the type for `$event` for completion.\n\n```\n@Component({...})\nclass MyComponent {\n @Output() open: EventEmitter\u003cSomeType> = new EventEmitter();\n @Output() open: Stream\u003cSomeType> = ...;\n}\n```\n\nFor an IDE the resolution logic would be to check the schema and derive the type there. If not found check for the directives on the element and see if they fire such an event and what the type is. \n","author":{"url":"https://github.com/mhevery","@type":"Person","name":"mhevery"},"datePublished":"2015-10-22T18:14:51Z","url":"https://github.com/angular/angular/issues/4862"}
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:4e4502e3-df90-c1cc-c3a7-e141e195ef0e current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id BCE2:E03FE:336342:43A3EE:6B016EF8 html-safe-nonce f179fb0574f8e6884d220e887b099e28b9d52a3065fff21884f9194f8305e914 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0UyOkUwM0ZFOjMzNjM0Mjo0M0EzRUU6NkIwMTZFRjgiLCJ2aXNpdG9yX2lkIjoiNzczNTY2MTI0NzgxODk4NTIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 9fdc42b5b64ca1ae1c63fd0735289b90c248d1a928e1fa1540e3a719af851dd9 hovercard-subject-tag issue:112859881 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/4862/issue_layout twitter:image https://opengraph.githubassets.com/9a7576ce6d56f6b6604401473dc34157437d7208bc5ee5379d4b7e8bbc671648/angular/angular/issues/4862 twitter:card summary_large_image og:image https://opengraph.githubassets.com/9a7576ce6d56f6b6604401473dc34157437d7208bc5ee5379d4b7e8bbc671648/angular/angular/issues/4862 og:image:alt Assume that the user has typed: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username mhevery 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
URLs of crawlers that visited me.