Title: Angular binding DOM property instead of web component property · Issue #36355 · angular/angular · GitHub
Open Graph Title: Angular binding DOM property instead of web component property · Issue #36355 · angular/angular
X Title: Angular binding DOM property instead of web component property · Issue #36355 · angular/angular
Description: Description Currently when we use web components in angular 8, with module schema set to CUSTOM_ELEMENTS_SCHEMA. Angular sets and update DOM properties, instead of web component properties when property name is similar to a attribute whi...
Open Graph Description: Description Currently when we use web components in angular 8, with module schema set to CUSTOM_ELEMENTS_SCHEMA. Angular sets and update DOM properties, instead of web component properties when pro...
X Description: Description Currently when we use web components in angular 8, with module schema set to CUSTOM_ELEMENTS_SCHEMA. Angular sets and update DOM properties, instead of web component properties when pro...
Opengraph URL: https://github.com/angular/angular/issues/36355
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular binding DOM property instead of web component property","articleBody":"\r\n\r\n### Description\r\n Currently when we use web components in angular 8, with module schema set to CUSTOM_ELEMENTS_SCHEMA. Angular sets and update DOM properties, instead of web component properties when property name is similar to a attribute which has a corresponding DOM property. For example:\r\nIf the web component has exposed a property with name readonly, when we bind this property in our template like:\r\n\r\n`\u003cmy-custom-element [readonly]=\"readonly\">\u003c/my-custom-element>`\r\n\r\nInstead of updating and binding with readonly prop of the web component. Angular binds it with readOnly property of the dom. Also this readOnly property is then also available on the web component reference. But my web component readonly property is always undefined and is never set.\r\n\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nAs displayed in the below stackblitz, even on changing the readonly property of the web component the input is never made readonly, and the web component setter is never called. Also you can observe that readonly property of web component is always undefined wheres as if you display readOnly property of DOM is getting updated\r\n\r\nhttps://stackblitz.com/edit/angular-rlntip","author":{"url":"https://github.com/amy-1995","@type":"Person","name":"amy-1995"},"datePublished":"2020-03-31T18:23:01Z","url":"https://github.com/angular/angular/issues/36355"}
| 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:621bda6d-e810-b209-4160-c187b8aec1be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A142:2C4BED:3387CE4:417B8F9:6B01D96B |
| html-safe-nonce | 22bee557a34d3031a80668e0b3e06590d8c45159f4c9a6ece927e9b8554f1491 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTQyOjJDNEJFRDozMzg3Q0U0OjQxN0I4Rjk6NkIwMUQ5NkIiLCJ2aXNpdG9yX2lkIjoiMzE4Mjc1NTExNjcxNzU2MjIxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03532dfcb7ab54d9380dfe8b439043ed9c1f193249fe611618490488b1e7126b |
| hovercard-subject-tag | issue:591321890 |
| 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/36355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6c166e98817ef90407ccb1c1e8c3a8dcdfe88f9708e6c97d61f2db9e6b02ed3/angular/angular/issues/36355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6c166e98817ef90407ccb1c1e8c3a8dcdfe88f9708e6c97d61f2db9e6b02ed3/angular/angular/issues/36355 |
| og:image:alt | Description Currently when we use web components in angular 8, with module schema set to CUSTOM_ELEMENTS_SCHEMA. Angular sets and update DOM properties, instead of web component properties when pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amy-1995 |
| 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