René's URL Explorer Experiment


Title: Support providing a space-separated list of classes when using [class] bindings · Issue #62469 · angular/angular · GitHub

Open Graph Title: Support providing a space-separated list of classes when using [class] bindings · Issue #62469 · angular/angular

X Title: Support providing a space-separated list of classes when using [class] bindings · Issue #62469 · angular/angular

Description: Which @angular/* package(s) are relevant/related to the feature request? core Description While migrating my app to Angular 20 and changing to the new control flow syntax, I thought I would also remove [ngClass] in favour of [class] The ...

Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description While migrating my app to Angular 20 and changing to the new control flow syntax, I thought I would also re...

X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description While migrating my app to Angular 20 and changing to the new control flow syntax, I thought I would also re...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support providing a space-separated list of classes when using [class] bindings","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nWhile migrating my app to Angular 20 and changing to the new control flow syntax, I thought I would also remove [ngClass] in favour of [class]\n\nThe problem is that [class] does not support the way you usually add tailwind.\n\n```html\n\u003cdiv [class]=\"[\n  'flex flex-col',\n  showActive && 'bg-green-700',\n]\">\u003c/div>\n\n\u003cdiv [class]=\"{\n  'flex flex-col': true,\n  'bg-green-700 text-white: showActive,\n}\">\u003c/div>\n```\n\n![Image](https://github.com/user-attachments/assets/66e7ed14-3ffd-44cf-af59-3bb9e96ec1b3)\n\nI think a lot of people (including myself) thought this would just work, and the path angular has been taking with removing the control flow directives, that you should prefer using [class] over [ngClass]\n\n\nI found this issue where it was said that it would not get fixed, which I can understand.\nhttps://github.com/angular/angular/issues/54605\n\nBut maybe there should be a disclaimer on [class] saying that the above does not work and you should use ngClass\n\n### Proposed solution\n\nif angular is heading in the direction that [class] is going to be the preferred way of adding classes, we should reconsider adding the string splitting to [class] because of tailwinds success (and clsx)\n\nif not\n\nadd a big note in the [class] documentation saying you need to use [ngClass] instead when writing the above.\n\n### Alternatives considered\n\njust use ngClass","author":{"url":"https://github.com/leon","@type":"Person","name":"leon"},"datePublished":"2025-07-04T10:05:12Z","url":"https://github.com/angular/angular/issues/62469"}

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:868b6160-7236-6966-c46f-c623b973497c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC5C:DA744:15E4E1D:1D6DA0B:6B01420A
html-safe-nonce9b6c6d2af8206d0b5408d9e9a6924f3ca396b3058300927cfdf311a51e376718
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzVDOkRBNzQ0OjE1RTRFMUQ6MUQ2REEwQjo2QjAxNDIwQSIsInZpc2l0b3JfaWQiOiI5NjAzODAxNTgzMzY5MDk4MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9e0ffa26a5cd5af7ee020d1367cbb90c647153b0f48c7c2483f4b9bd9183dd5e
hovercard-subject-tagissue:3202082871
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/62469/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7982f068e5615aa73715e7edc8ad823cb51e37783ef78e489d5a185227fc3a0a/angular/angular/issues/62469
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7982f068e5615aa73715e7edc8ad823cb51e37783ef78e489d5a185227fc3a0a/angular/angular/issues/62469
og:image:altWhich @angular/* package(s) are relevant/related to the feature request? core Description While migrating my app to Angular 20 and changing to the new control flow syntax, I thought I would also re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleon
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/62469#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F62469
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%2F62469
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/62469
Reloadhttps://github.com/angular/angular/issues/62469
Reloadhttps://github.com/angular/angular/issues/62469
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)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/62469
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/62469
Support providing a space-separated list of classes when using [class] bindingshttps://github.com/angular/angular/issues/62469#top
https://github.com/leon
leonhttps://github.com/leon
on Jul 4, 2025https://github.com/angular/angular/issues/62469#issue-3202082871
https://private-user-images.githubusercontent.com/13211/462413894-66e7ed14-3ffd-44cf-af59-3bb9e96ec1b3.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDQ4NTQsIm5iZiI6MTc5NTI0NDU1NCwicGF0aCI6Ii8xMzIxMS80NjI0MTM4OTQtNjZlN2VkMTQtM2ZmZC00NGNmLWFmNTktM2JiOWU5NmVjMWIzLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA3MDIzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiY2YxNTY0MDczMmJhYmQ4N2ZkMTM0NWVhM2U0OWZlNGU2NTZjOGQ5ZjgwYmUxZjA4YjFjODRjZDM2MWZiNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.TLwSUcLwjD8OvZ78oGXrJ9l0ZT3sV0CGq21zykvbTek
#54605https://github.com/angular/angular/issues/54605
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jul 4, 2025https://github.com/angular/angular/issues/62469#issuecomment-3035348144
#54605https://github.com/angular/angular/issues/54605
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jul 4, 2025https://github.com/angular/angular/issues/62469#issuecomment-3035367937
#40623https://github.com/angular/angular/issues/40623
JeanMechehttps://github.com/JeanMeche
duplicatehttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Aduplicate
Document difference between [NgClass] and [class] #40623https://github.com/angular/angular/issues/40623
on Jul 4, 2025https://github.com/angular/angular/issues/62469#event-18468911431
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 4, 2025https://github.com/angular/angular/issues/62469#issuecomment-3148801713
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 4, 2025https://github.com/angular/angular/issues/62469#event-18960008039
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/62469
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/62469
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.