Title: feature request: mark component @input as required (vs none if not required) · Issue #11904 · angular/angular · GitHub
Open Graph Title: feature request: mark component @input as required (vs none if not required) · Issue #11904 · angular/angular
X Title: feature request: mark component @input as required (vs none if not required) · Issue #11904 · angular/angular
Description: [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md...
Open Graph Description: [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/ang...
X Description: [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support request here, instead see https://github.c...
Opengraph URL: https://github.com/angular/angular/issues/11904
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feature request: mark component @input as required (vs none if not required)","articleBody":"```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior** \nno way to enforce which are a component's required interface\n\n**Expected behavior**\nget a TypeScript error that component is not satisfying it's minimum interface ti work\n\n**What is the motivation / use case for changing the behavior?**\nI have a VERY complex component with 6 inpits, yet only 1 input is required for it to work with no errors. If I will want to re-use in in 6 months, no way will I remember what is the min input interface. Same for new users of my component.\n- **Angular version:** 2.0.X \n latest ng2\n\nthis is not a breaking change as current inputs (none req, can be left as is) so would be awesome if can be added in a minor release update.\n\nAngular 2 Kitchen sink: http://ng2.javascriptninja.io\nand source@ https://github.com/born2net/ng2Boilerplate\nRegards,\n\nSean\n","author":{"url":"https://github.com/born2net","@type":"Person","name":"born2net"},"datePublished":"2016-09-25T14:08:00Z","url":"https://github.com/angular/angular/issues/11904"}
| 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:bfad6e06-53b8-ae6f-271c-995af0f56fae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA70:10531B:41B1B7:53C8B8:6B010A5D |
| html-safe-nonce | 9b0223b9dd4ee5e83b5b76bfb62064d1587b8db97c3e4099f61977eb17455b67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTcwOjEwNTMxQjo0MUIxQjc6NTNDOEI4OjZCMDEwQTVEIiwidmlzaXRvcl9pZCI6IjYxOTk1MTA5NDM5NDUyNjM3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0483595d8cdb95d1215844105b3dae4f1146e40847021d67d596e2e10224dbd5 |
| hovercard-subject-tag | issue:179087996 |
| 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/11904/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12f355e967aca11cd082ac97f0cb1e873f9859b16d7dbf40098321ecaf2e6e48/angular/angular/issues/11904 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12f355e967aca11cd082ac97f0cb1e873f9859b16d7dbf40098321ecaf2e6e48/angular/angular/issues/11904 |
| og:image:alt | [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/ang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | born2net |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width