René's URL Explorer Experiment


Title: Canonical: Marking @Input as required · Issue #37706 · angular/angular · GitHub

Open Graph Title: Canonical: Marking @Input as required · Issue #37706 · angular/angular

X Title: Canonical: Marking @Input as required · Issue #37706 · angular/angular

Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description There is a long history of discussion about whether / how to have the compiler enforce that specific inputs are provided to components: #11904 #1815...

Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description There is a long history of discussion about whether / how to have the compiler enforce that specific inputs ...

X Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description There is a long history of discussion about whether / how to have the compiler enforce that specific inputs ...

Opengraph URL: https://github.com/angular/angular/issues/37706

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Canonical: Marking @Input as required","articleBody":"# 🚀 feature request\r\n\r\n### Relevant Package\r\nThis feature request is for @angular/core\r\n\r\n\r\n### Description\r\nThere is a long history of discussion about whether / how to have the compiler enforce that specific inputs are provided to components: #11904 #18156 #24879 #28403 #30974  \r\n\r\nHowever, all of those are now closed and locked.  They contain some advice about how to mitigate the problem, or kick the can down the road (\"One day I hope we'll be able to do this. That day is not today.\"), but thanks to the lock-bot none of them can be used to continue the conversation, so I guess we need yet another issue, because I believe the problem still exists.\r\n\r\n\r\n### Describe the solution you'd like\r\nIt should be possible to annotate inputs such that using a component in a template without providing a value for that input is a compile-time error.  Template checking has come a long way, and it's already possible for the compiler to flag providing the wrong type as an argument.  Combine with the `strictPropertyInitializers` flag, and such a check could rely on the existing `!` assertion operator.\r\n\r\n\r\n### Describe alternatives you've considered\r\nThe best approach I've seen while reviewing the above issues is specifying the required attributes in the `selector` component metadata, but a) apparently that won't catch passing `null` or `undefined` to an Input that not defined with a type that includes those values, and b) that appears to break certain test harnesses?  Also, I haven't started using `strictTemplates` / `fullTemplateTypeCheck` yet due to some problems in previous versions with narrowing on `*ngIf` that may or may not have been resolved -- those existing capabilities may address some or all of this need.","author":{"url":"https://github.com/thw0rted","@type":"Person","name":"thw0rted"},"datePublished":"2020-06-24T16:47:30Z","url":"https://github.com/angular/angular/issues/37706"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6414eefb-2c35-facf-338d-eb0ca2a13f94
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBDEE:D5AA4:10F8EE7:16A8FA8:6B010DD8
html-safe-nonce90dcce2adb09953348aed6122aa2d59b0edefdf58209182043aaf8f4cf228afd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREVFOkQ1QUE0OjEwRjhFRTc6MTZBOEZBODo2QjAxMEREOCIsInZpc2l0b3JfaWQiOiI3NjIyNTE1Mjk5Mzg4MDM0NTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5dd819606c9af4eddfa7fee64229e9fe00185b256fc4135cc0d12f12e23099f1
hovercard-subject-tagissue:644760644
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/37706/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f7116c52cee59031f3d0f73494fb983ba4130b9f9da2ea2750b5d7fe504afd4c/angular/angular/issues/37706
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f7116c52cee59031f3d0f73494fb983ba4130b9f9da2ea2750b5d7fe504afd4c/angular/angular/issues/37706
og:image:alt🚀 feature request Relevant Package This feature request is for @angular/core Description There is a long history of discussion about whether / how to have the compiler enforce that specific inputs ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethw0rted
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/37706#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F37706
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F37706
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/37706
Reloadhttps://github.com/angular/angular/issues/37706
Reloadhttps://github.com/angular/angular/issues/37706
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/37706
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/37706
Canonical: Marking @Input as requiredhttps://github.com/angular/angular/issues/37706#top
https://github.com/crisbeto
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
canonicalThis issue represents a canonical design issue in Angular.https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22canonical%22
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/thw0rted
thw0rtedhttps://github.com/thw0rted
on Jun 24, 2020https://github.com/angular/angular/issues/37706#issue-644760644
#11904https://github.com/angular/angular/issues/11904
#18156https://github.com/angular/angular/issues/18156
#24879https://github.com/angular/angular/issues/24879
#28403https://github.com/angular/angular/issues/28403
#30974https://github.com/angular/angular/issues/30974
Nexthttps://github.com/angular/angular/issues/37706?timeline_page=1
AndrewKushnirhttps://github.com/AndrewKushnir
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Jun 24, 2020https://github.com/angular/angular/issues/37706#event-3479068005
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jun 24, 2020https://github.com/angular/angular/issues/37706#event-3479068062
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
on Jun 24, 2020https://github.com/angular/angular/issues/37706#event-3479080611
https://github.com/cyrilletuzi
cyrilletuzihttps://github.com/cyrilletuzi
on Jun 25, 2020https://github.com/angular/angular/issues/37706#issuecomment-649649476
what Ionic's Stencil is doinghttps://stenciljs.com/docs/typed-components#required-properties
https://github.com/amakhrov
amakhrovhttps://github.com/amakhrov
on Oct 28, 2020https://github.com/angular/angular/issues/37706#issuecomment-718197799
https://github.com/ratoi-crysty
ratoi-crystyhttps://github.com/ratoi-crysty
on Jan 11, 2021https://github.com/angular/angular/issues/37706#issuecomment-758282042
angular-robothttps://github.com/apps/angular-robot
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
on Jun 4, 2021https://github.com/angular/angular/issues/37706#event-4843671641
alxhubhttps://github.com/alxhub
alxhubhttps://github.com/alxhub
jelbournhttps://github.com/jelbourn
jessicajaniukhttps://github.com/jessicajaniuk
on Jul 30, 2021https://github.com/angular/angular/issues/37706#event-5088803609
https://github.com/amakhrov
amakhrovhttps://github.com/amakhrov
on May 12, 2022https://github.com/angular/angular/issues/37706#issuecomment-1124414664
jelbournhttps://github.com/jelbourn
crisbetohttps://github.com/crisbeto
jelbournhttps://github.com/jelbourn
alxhubhttps://github.com/alxhub
on Jun 21, 2022https://github.com/angular/angular/issues/37706#event-6849184559
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
1a6ca68https://github.com/angular/angular/commit/1a6ca68154dd73bac4b8d2e094d97952f60b3e30
on Mar 16, 2023https://github.com/angular/angular/issues/37706#event-8761274890
crisbetohttps://github.com/crisbeto
on Mar 16, 2023https://github.com/angular/angular/issues/37706#event-8771790664
feat(compiler): add support for compile-time required inputshttps://github.com/crisbeto/angular/commit/11fb63c834b104c72cdb13a37fd6e075ac1be6de
https://docs.github.com/articles/closing-issues-via-commit-messages
11fb63chttps://github.com/crisbeto/angular/commit/11fb63c834b104c72cdb13a37fd6e075ac1be6de
feat(compiler): add support for compile-time required inputshttps://github.com/crisbeto/angular/commit/57baceac38a77f6f9cdf0fc6226045c966325318
https://docs.github.com/articles/closing-issues-via-commit-messages
57baceahttps://github.com/crisbeto/angular/commit/57baceac38a77f6f9cdf0fc6226045c966325318
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Mar 17, 2023https://github.com/angular/angular/issues/37706#event-8776913597
feat(compiler): add support for compile-time required inputs (#49453)https://github.com/angular/angular/commit/13dd614cd1da65eee947fd6971b7d6e1d6def207
#49453https://github.com/angular/angular/pull/49453
https://docs.github.com/articles/closing-issues-via-commit-messages
13dd614https://github.com/angular/angular/commit/13dd614cd1da65eee947fd6971b7d6e1d6def207
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Mar 17, 2023https://github.com/angular/angular/issues/37706#issuecomment-1474171629
#49453https://github.com/angular/angular/pull/49453
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Mar 17, 2023https://github.com/angular/angular/issues/37706#event-8780842894
https://github.com/amakhrov
amakhrovhttps://github.com/amakhrov
on Mar 17, 2023https://github.com/angular/angular/issues/37706#issuecomment-1474193875
@pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Mar 17, 2023https://github.com/angular/angular/issues/37706#issuecomment-1474198702
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
8f539c1https://github.com/angular/angular/commit/8f539c11f40be12207ab42bdf1f87a154a5a2d04
on Mar 20, 2023https://github.com/angular/angular/issues/37706#event-8793751175
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Apr 20, 2023https://github.com/angular/angular/issues/37706#issuecomment-1515535020
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Apr 20, 2023https://github.com/angular/angular/issues/37706#event-9051848984
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/37706
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/37706
crisbetohttps://github.com/crisbeto
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
canonicalThis issue represents a canonical design issue in Angular.https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22canonical%22
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.