Title: Typesafety for routed input bindings. · Issue #58940 · angular/angular · GitHub
Open Graph Title: Typesafety for routed input bindings. · Issue #58940 · angular/angular
X Title: Typesafety for routed input bindings. · Issue #58940 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? compiler Description When using withComponentInputBinding in ApplicationConfig, I can pass: query parameters path and matrix parameters static route data data from ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? compiler Description When using withComponentInputBinding in ApplicationConfig, I can pass: query parameters path and matrix...
X Description: Which @angular/* package(s) are relevant/related to the feature request? compiler Description When using withComponentInputBinding in ApplicationConfig, I can pass: query parameters path and matrix...
Opengraph URL: https://github.com/angular/angular/issues/58940
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typesafety for routed input bindings. ","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncompiler\n\n### Description\n\nWhen using `withComponentInputBinding` in ApplicationConfig, I can pass:\n \n- query parameters\n- path and matrix parameters\n- static route data\n- data from resolvers \n\nto component via inputs. But, even if I define my input as required it can be `undefined` if not provided, without any compilation error.\n```\nexport abstract class ExampleComponent {\n myData = input.required\u003cMyData>();\n}\n```\n\n\n### Proposed solution\n\nIt would be great if the required inputs could be checked during compilation, and throw an error if missing, just like it works for components instantiated using selector:\n\n```\nRequired input 'myData' from component ExampleComponent must be specified.\n```\n\nI don't think query/matrix parameters could be checked, but are the others checkable?\n\n\n### Alternatives considered\n\nNone, open to suggestions.","author":{"url":"https://github.com/martinboue","@type":"Person","name":"martinboue"},"datePublished":"2024-11-27T18:42:35Z","url":"https://github.com/angular/angular/issues/58940"}
| 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:9985fd0b-1fa0-3447-c5e1-529b22c17ef5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA68:3136D1:AC6C85:E78694:6B06434E |
| html-safe-nonce | 259278466e16bf4d0c8c1e560912859245de472e0f37397cf7ad42d08c0d39e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTY4OjMxMzZEMTpBQzZDODU6RTc4Njk0OjZCMDY0MzRFIiwidmlzaXRvcl9pZCI6IjkxMTE4ODEyNTAzNTYyMTY2NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f0aa2e55e2c2628b193cf623c9adf537566c11811c59a55ac2c5daa21c79b9c |
| hovercard-subject-tag | issue:2699458792 |
| 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/58940/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b446e3f3191bf94ba6006b706bfe326a5bbcc2be912f381efc32ecef65864ad7/angular/angular/issues/58940 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b446e3f3191bf94ba6006b706bfe326a5bbcc2be912f381efc32ecef65864ad7/angular/angular/issues/58940 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? compiler Description When using withComponentInputBinding in ApplicationConfig, I can pass: query parameters path and matrix... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martinboue |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| 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 | ac613d3698d3d8565651455086e1f74da07bf277 |
| 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