Title: Support `input()`, `output()` and `model()` in Angular elements · Issue #53981 · angular/angular · GitHub
Open Graph Title: Support `input()`, `output()` and `model()` in Angular elements · Issue #53981 · angular/angular
X Title: Support `input()`, `output()` and `model()` in Angular elements · Issue #53981 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description lets suppose we have this component : @Component({standalone: true, ...]) export class ToBeAWebComponent { anInput = input
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description lets suppose we have this component : @Component({standalone: true, ...]) export class ToBeAWebComp...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description lets suppose we have this component : @Component({standalone: true, ...]) export class ToBeAWebComp...
Opengraph URL: https://github.com/angular/angular/issues/53981
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `input()`, `output()` and `model()` in Angular elements","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nYes\n\n### Description\n\nlets suppose we have this component :\r\n\r\n```typescript\r\n@Component({standalone: true, ...])\r\nexport class ToBeAWebComponent {\r\n anInput = input\u003cstring>();\r\n}\r\n```\r\n\r\nby using the @angular/elements package I can export that component as a web-component named : to-be-a-web-component.\r\n\r\n```javascript\r\nconst wc = document.querySelector(\"to-be-a-web-component\");\r\nwc.anInput = \"aValue\"; // this will create a bug and change the type of anInput from InputSignal to string.\r\n// and if the input value is referenced in the template, or any other place, an error will be raised telling that anInput is not a function \r\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI 17.1.0\r\n@angular/core 17.1.0\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/aihilali","@type":"Person","name":"aihilali"},"datePublished":"2024-01-18T21:16:28Z","url":"https://github.com/angular/angular/issues/53981"}
| 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:57d3b234-e3bc-7d53-d1fa-8dcc8a2882bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8904:2D96F1:17A5DA7:1F39FA6:6B013910 |
| html-safe-nonce | 842d9b8ed762168eb45567ea9d848912c2325075749c6a1bebf10d8c687e5552 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTA0OjJEOTZGMToxN0E1REE3OjFGMzlGQTY6NkIwMTM5MTAiLCJ2aXNpdG9yX2lkIjoiNTM0OTY1MTk3Mzk0NTc2ODIwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e90261a63067fadd25c2f509ee0fefa8ea3795b7e7ce1e267daa588154449bd1 |
| hovercard-subject-tag | issue:2089062006 |
| 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/53981/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2819a120a8eb47f3f1845418fa0b8661e807fa3055838dae1d00a7d9711231b4/angular/angular/issues/53981 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2819a120a8eb47f3f1845418fa0b8661e807fa3055838dae1d00a7d9711231b4/angular/angular/issues/53981 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description lets suppose we have this component : @Component({standalone: true, ...]) export class ToBeAWebComp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aihilali |
| 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