Title: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #52946 · angular/angular · GitHub
Open Graph Title: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #52946 · angular/angular
X Title: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #52946 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? router or core Is this a regression? No Description given the following class: export class SimpleComponent { @Input() readonly = true; } and route: { path: '', component: SimpleComp...
Open Graph Description: Which @angular/* package(s) are the source of the bug? router or core Is this a regression? No Description given the following class: export class SimpleComponent { @Input() readonly = true; } and ...
X Description: Which @angular/* package(s) are the source of the bug? router or core Is this a regression? No Description given the following class: export class SimpleComponent { @Input() readonly = true; } and ...
Opengraph URL: https://github.com/angular/angular/issues/52946
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bindToComponentInputs=true breaks default/initial value of field with @Input() ","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nrouter or core\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\ngiven the following class:\r\n\r\n```\r\nexport class SimpleComponent {\r\n @Input() readonly = true; \r\n}\r\n```\r\n\r\nand route:\r\n` { path: '', component: SimpleComponent, pathMatch: 'full' },`\r\n\r\nthe default value is undefined if \r\n` bindToComponentInputs: true, `\r\n\r\n\r\n\r\n\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://stackblitz.com/edit/github-w4jhh2?file=src%2Fmain.ts\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nreadonly = - (default is true)\r\n\r\n--- \r\n\r\nchange line 53 to : false, then the default works again:\r\nreadonly = true - (default is true)\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\n\"@angular/animations\": \"17.0.3\",\r\n \"@angular/common\": \"^17.0.3\",\r\n \"@angular/compiler\": \"^17.0.3\",\r\n \"@angular/core\": \"^17.0.3\",\r\n \"@angular/platform-browser\": \"^17.0.3\",\r\n \"@angular/platform-browser-dynamic\": \"^17.0.3\",\r\n \"@angular/router\": \"^17.0.3\",\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/merkisoft","@type":"Person","name":"merkisoft"},"datePublished":"2023-11-16T00:14:35Z","url":"https://github.com/angular/angular/issues/52946"}
| 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:c439c7b8-ccd1-ce06-bc43-4a18406211b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCAA:161654:976BF9:C4DF03:6B063611 |
| html-safe-nonce | affbd5f7b02edc4a6a6592e7b507e939e3f8ba52a203368849ad60df87ad7fd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0FBOjE2MTY1NDo5NzZCRjk6QzRERjAzOjZCMDYzNjExIiwidmlzaXRvcl9pZCI6Ijc1OTg4MzU5NDIwOTQ2ODE2MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6a67a0d7136aa108421cc969abedb82f10ee2ae6a5e69ba69cf53a1f0ece6ebb |
| hovercard-subject-tag | issue:1995796150 |
| 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/52946/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5fdf6075d945b96ecafc1211057e4f4784dcfc8ff3487143fbc8f99eaec7a490/angular/angular/issues/52946 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5fdf6075d945b96ecafc1211057e4f4784dcfc8ff3487143fbc8f99eaec7a490/angular/angular/issues/52946 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? router or core Is this a regression? No Description given the following class: export class SimpleComponent { @Input() readonly = true; } and ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | merkisoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width