Title: Requried Input Runtime Validation · Issue #59345 · angular/angular · GitHub
Open Graph Title: Requried Input Runtime Validation · Issue #59345 · angular/angular
X Title: Requried Input Runtime Validation · Issue #59345 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Currently, required inputs are merely compile-time validations, which works for most cases except for router input binding. When supplying some dat...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Currently, required inputs are merely compile-time validations, which works for most cases except for route...
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Currently, required inputs are merely compile-time validations, which works for most cases except for route...
Opengraph URL: https://github.com/angular/angular/issues/59345
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Requried Input Runtime Validation","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nCurrently, required inputs are merely compile-time validations, which works for most cases except for router input binding.\n\nWhen supplying some data to the component via the route config, the compiler is unable to check the required inputs are correctly provided with a value, and thus could lead to `undefined` at runtime when the input is renamed or component refactored.\n\n### Proposed solution\n\nWhen `isDevMode() === true`, we verify if the required inputs are provided with a value after component initialization.\n\n### Alternatives considered\n\nAdd compiler validation for router input bindings?","author":{"url":"https://github.com/Char2sGu","@type":"Person","name":"Char2sGu"},"datePublished":"2025-01-01T14:36:26Z","url":"https://github.com/angular/angular/issues/59345"}
| 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:5aad6a9b-cc0c-3667-f15d-43b5e286265e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A530:39ABD:E1BC05:13279AA:6B06538E |
| html-safe-nonce | 8fb6c9278cb5ab5a1a86b938d71f7be86761866e9af2a36e79c39e59df22def5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTMwOjM5QUJEOkUxQkMwNToxMzI3OUFBOjZCMDY1MzhFIiwidmlzaXRvcl9pZCI6IjI4MTQ0NjU3NDcwMDk4MTk1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10210118b0805f61bf157903bb05541506f605ca9e06471b4693a218afc562a3 |
| hovercard-subject-tag | issue:2765104362 |
| 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/59345/issue_layout |
| twitter:image | https://opengraph.githubassets.com/544e77081902784ccb0803e304d90e5a8abb3ed35d01498931771766c8180721/angular/angular/issues/59345 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/544e77081902784ccb0803e304d90e5a8abb3ed35d01498931771766c8180721/angular/angular/issues/59345 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description Currently, required inputs are merely compile-time validations, which works for most cases except for route... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Char2sGu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| 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