Title: Parse provided "custom-elements-manifest" and/or types provided in the HTMLElementTagNameMap for custom elements · Issue #50226 · angular/angular · GitHub
Open Graph Title: Parse provided "custom-elements-manifest" and/or types provided in the HTMLElementTagNameMap for custom elements · Issue #50226 · angular/angular
X Title: Parse provided "custom-elements-manifest" and/or types provided in the HTMLElementTagNameMap for custom elements · Issue #50226 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, core Description We created a shared UI library with lit and are exporting plain web components to be used in any web application. Our library exports a c...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, core Description We created a shared UI library with lit and are exporting plain web components to be used in any ...
X Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, core Description We created a shared UI library with lit and are exporting plain web components to be used in any ...
Opengraph URL: https://github.com/angular/angular/issues/50226
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parse provided \"custom-elements-manifest\" and/or types provided in the HTMLElementTagNameMap for custom elements","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncompiler, core\n\n### Description\n\nWe created a shared UI library with lit and are exporting plain web components to be used in any web application. Our library exports a [custom-elements-manifest](https://github.com/webcomponents/custom-elements-manifest) as well as the basic class types on the HTMLElementTagNameMap like this:\r\n```\r\nexport default class Switch extends HTMLElement {\r\n // component logic\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n 'dss-switch': Switch;\r\n }\r\n}\r\n```\r\n\r\nWe have not been able to find a way to tell Angular to use these definitions to have proper typing support in the templates using our custom elements. Is there any plan to support this in the future or did I miss something that already exists?\n\n### Proposed solution\n\nUse types in HTMLElementTagNameMap for basic property binding.\r\nSupport custom-element-manifest to increase type support in templates when using custom elements.\n\n### Alternatives considered\n\nJetBrains have come up with \"web-types.json\" that can provide these type infos but I'd appreciate a solution that is more global.","author":{"url":"https://github.com/r3dDoX","@type":"Person","name":"r3dDoX"},"datePublished":"2023-05-10T08:01:58Z","url":"https://github.com/angular/angular/issues/50226"}
| 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:f67ebf91-c08e-b949-ac96-4b47c96e1d38 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9546:16AB79:156EEEC:1B480A1:6B01312B |
| html-safe-nonce | d35c9bbd80b30c044a823488e8eadfe5ffdc043a24933f2220fd3248d4413a00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTQ2OjE2QUI3OToxNTZFRUVDOjFCNDgwQTE6NkIwMTMxMkIiLCJ2aXNpdG9yX2lkIjoiMTA0MTYwODU3Njk5ODY1MDE1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3635ac8b5cd9ad58f142eb049db9b87312fef3604baf416f4773f618fd77d0ff |
| hovercard-subject-tag | issue:1703341194 |
| 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/50226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1f605e54baa07f9df63e3c6f062b2d44e7e4ecdd2c3e4f26ee3c9b15ec163b8/angular/angular/issues/50226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1f605e54baa07f9df63e3c6f062b2d44e7e4ecdd2c3e4f26ee3c9b15ec163b8/angular/angular/issues/50226 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? compiler, core Description We created a shared UI library with lit and are exporting plain web components to be used in any ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | r3dDoX |
| 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