René's URL Explorer Experiment


Title: Self-closing component tags ( instead of )? · Issue #39525 · angular/angular · GitHub

Open Graph Title: Self-closing component tags ( instead of )? · Issue #39525 · angular/angular

X Title: Self-closing component tags ( instead of )? · Issue #39525 · angular/angular

Description: 🚀 feature request Relevant Package This feature request is for @angular/compiler? Unsure. Description The issue title pretty much covers it but here is another example: \r\n\u003csuper-duper-long-component-name [prop]=\"someVar\">\u003c/super-duper-long-component-name>\r\n```\r\n\r\nThere is an existing issue for this, #673, but it was closed due to inactivity.\r\n\r\nThat issue got half-rejected (it was not resolved) on the basis of the HTML spec, which does not allow self-closing tags. That makes a total of **zero** sense to me. The HTML template language is already far beyond what vanilla HTML offers, and that is the entire point of using a framework like Angular. Many other major frameworks (React/Vue/Svelte to name a few) already support self-closing component tags.\r\n\r\nI understand that Angular templates were being parsed in the browser before, but why should ease-of-life syntax sugar be banned when using AOT compilation? Sure, some people still use JIT-compiled Angular, but then again, some people still use Internet Explorer in 2020. If they want to suffer so be it but why refuse to add excellent features for the rest of us? There are plenty of antifeatures out there but I personally think self-closing tags are pretty intuitive and improve the code quality significantly; from the looks of #673 it seems like a lot of other people agree.\r\n\r\nPlease reconsider self-closing component tags.\r\n\r\n### Describe alternatives you've considered\r\n\r\nContinue to sigh as I write needlessly verbose code and write checks for two different nullish types.\r\n","author":{"url":"https://github.com/samclaus","@type":"Person","name":"samclaus"},"datePublished":"2020-11-01T02:31:11Z","url":"https://github.com/angular/angular/issues/39525"}


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:fc2ae84a-13e0-6002-a0c7-b97dbc072856
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE878:2FA59:BCAA55:F36CF7:6B00E960
html-safe-nonce211b7b4eea5f31c364f8cfbd5ac79d40d6f54b74d84b17995782286f9a19940b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODc4OjJGQTU5OkJDQUE1NTpGMzZDRjc6NkIwMEU5NjAiLCJ2aXNpdG9yX2lkIjoiNTc4MTU4Mjc2MDI5NjYzODgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ada9ce24cb92e0a639187443048be41917c17cef476680470ed8ab1f7a74dd0
hovercard-subject-tagissue:733849862
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/39525/issue_layout
twitter:imagehttps://opengraph.githubassets.com/73048be7626b7d77a6cee4478ba057fab40600f0bb43b401c787f63dcce9292e/angular/angular/issues/39525
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73048be7626b7d77a6cee4478ba057fab40600f0bb43b401c787f63dcce9292e/angular/angular/issues/39525
og:image:alt🚀 feature request Relevant Package This feature request is for @angular/compiler? Unsure. Description The issue title pretty much covers it but here is another example:
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesamclaus
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/39525#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F39525
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%2F39525
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/39525
Reloadhttps://github.com/angular/angular/issues/39525
Reloadhttps://github.com/angular/angular/issues/39525
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)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/39525
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/39525
Self-closing component tags ( instead of )?https://github.com/angular/angular/issues/39525#top
https://github.com/crisbeto
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: basic template syntaxhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20basic%20template%20syntax%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/samclaus
samclaushttps://github.com/samclaus
on Nov 1, 2020https://github.com/angular/angular/issues/39525#issue-733849862
#673https://github.com/angular/angular/issues/673
#673https://github.com/angular/angular/issues/673
Nexthttps://github.com/angular/angular/issues/39525?timeline_page=1
https://github.com/Airblader
Airbladerhttps://github.com/Airblader
on Nov 1, 2020https://github.com/angular/angular/issues/39525#issuecomment-720094353
https://github.com/vytautas-petrikas
vytautas-petrikashttps://github.com/vytautas-petrikas
on Nov 2, 2020https://github.com/angular/angular/issues/39525#issuecomment-720274119
https://github.com/Airblader
Airbladerhttps://github.com/Airblader
on Nov 2, 2020https://github.com/angular/angular/issues/39525#issuecomment-720275351
@vytautas-petrikashttps://github.com/vytautas-petrikas
https://github.com/spock123
spock123https://github.com/spock123
on Nov 2, 2020https://github.com/angular/angular/issues/39525#issuecomment-720482163
#673https://github.com/angular/angular/issues/673
josephperrotthttps://github.com/josephperrott
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Nov 2, 2020https://github.com/angular/angular/issues/39525#event-3948770228
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 2, 2020https://github.com/angular/angular/issues/39525#event-3948770306
https://github.com/AleksanderBodurri
AleksanderBodurrihttps://github.com/AleksanderBodurri
on Nov 2, 2020https://github.com/angular/angular/issues/39525#issuecomment-720669685
AndrewKushnirhttps://github.com/AndrewKushnir
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Nov 2, 2020https://github.com/angular/angular/issues/39525#event-3949803125
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Nov 2, 2020https://github.com/angular/angular/issues/39525#event-3949803197
https://github.com/samclaus
samclaushttps://github.com/samclaus
on Nov 4, 2020https://github.com/angular/angular/issues/39525#issuecomment-721437889
https://github.com/sod
sodhttps://github.com/sod
on Nov 4, 2020https://github.com/angular/angular/issues/39525#issuecomment-721522361
https://github.com/spock123
spock123https://github.com/spock123
on Nov 4, 2020https://github.com/angular/angular/issues/39525#issuecomment-721578857
crisbetohttps://github.com/crisbeto
on Dec 19, 2022https://github.com/angular/angular/issues/39525#event-8069594065
crisbetohttps://github.com/crisbeto
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Dec 19, 2022https://github.com/angular/angular/issues/39525#event-8069594579
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
a532d71https://github.com/angular/angular/commit/a532d71975bef463223fd5d8322e3140760c9134
on Jan 4, 2023https://github.com/angular/angular/issues/39525#event-8154213184
https://github.com/spock123
spock123https://github.com/spock123
on Jan 4, 2023https://github.com/angular/angular/issues/39525#issuecomment-1371414970
https://github.com/karol-depka
karol-depkahttps://github.com/karol-depka
on Jan 14, 2023https://github.com/angular/angular/issues/39525#issuecomment-1382652246
https://github.com/crisbeto
crisbetohttps://github.com/crisbeto
on Jan 14, 2023https://github.com/angular/angular/issues/39525#issuecomment-1382676222
trekladyonehttps://github.com/trekladyone
on Feb 1, 2023https://github.com/angular/angular/issues/39525#event-8415363220
feat(compiler): allow self-closing tags on custom elements (angular#4…https://github.com/trekladyone/angular/commit/64a5bc55b0ff798bdc734a8059239b970cd6769d
angular#4…https://github.com/angular/angular/pull/48535
https://docs.github.com/articles/closing-issues-via-commit-messages
64a5bc5https://github.com/trekladyone/angular/commit/64a5bc55b0ff798bdc734a8059239b970cd6769d
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Feb 14, 2023https://github.com/angular/angular/issues/39525#issuecomment-1429992703
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 Feb 14, 2023https://github.com/angular/angular/issues/39525#event-8517182654
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/39525
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/39525
crisbetohttps://github.com/crisbeto
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: basic template syntaxhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20basic%20template%20syntax%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.