René's URL Explorer Experiment


Title: feat: Allow using ancestor decorator values to declare descendant decorators · Issue #13764 · angular/angular · GitHub

Open Graph Title: feat: Allow using ancestor decorator values to declare descendant decorators · Issue #13764 · angular/angular

X Title: feat: Allow using ancestor decorator values to declare descendant decorators · Issue #13764 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] feature request Problem When specifying a decorator on a component, the descendant decorator overrides the ancestor decorator. This become problematic if the descendant class wants to modify ...

Open Graph Description: I'm submitting a ... (check one with "x") [x] feature request Problem When specifying a decorator on a component, the descendant decorator overrides the ancestor decorator. This become problematic ...

X Description: I'm submitting a ... (check one with "x") [x] feature request Problem When specifying a decorator on a component, the descendant decorator overrides the ancestor decorator. This becom...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Allow using ancestor decorator values to declare descendant decorators","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] feature request\r\n```\r\n\r\n**Problem**\r\n\r\nWhen specifying a decorator on a component, the descendant decorator overrides the ancestor decorator. This become problematic if the descendant class wants to modify a value that can only be supplied in the `@Component` decorator. The only solution, currently, is to snap-shot the ancestor values. Snap shots are a maintenance issues because:\r\n\r\n1. If the ancestor values are ever changed as all descendants need to be updated. \r\n2. Updating all descendant classes is impossible if the component is in a re-usable library as the  library author might not have access to all descendants.\r\n3. It is unclear what the descendant meant to override and what it intended to copy so updating descendant classes is dangerous.\r\n\r\n**Proposal**\r\n\r\nInclude a special value called `inherited` that is usable when specifying decorators that allows referencing value from the decorate of the ancestor. `inherited` would be substitutable for any value in decorator and is substituted, during template code generation, for the ancestor decorator field value for the corresponding field.\r\n\r\nThe `inherited` value can be used with object spread syntax to mean include all the ancestor properties with the inherited values. This would be equivalent to specifying all decorator values as `inherited`.\r\n\r\n`inherited` would also be allowed in `providers` arrays which is substituted with the ancestor's `providers` array.\r\n\r\n**Example**\r\n\r\n```ts\r\n@Component({\r\n  stylesUrl: './base_styles.css',\r\n  providers: [BASE_PROVIDERS]\r\n})\r\nclass BaseComponent {\r\n}\r\n\r\n\r\n@Component({\r\n  ...inherited,\r\n  providers: [inherited, { provider: SomeToken, useValue: someValue} ],\r\n  template: `some template`\r\n})\r\nclass MyComponent extends BaseComponent {\r\n\r\n}\r\n```\r\n\r\n**Limitations**\r\n\r\nBecause the value is not substituted immediately, the value cannot be used in calculations that would otherwise be supported. For example, the following will not be supported:\r\n\r\n```ts\r\n@Component({\r\n  ...inherited,\r\n  template: inherited + `additional elements` // NOT SUPPORTED\r\n})\r\nclass Unsupported extends BaseClass {\r\n}\r\n```\r\n\r\nThe above would result in a type error in TypeScript and undefined behavior in ES6. This scenario would need to use an exported constant value that is supported without feature such as,\r\n\r\n```ts\r\n@Component({\r\n  ...inherited,\r\n  template: BASECLASS_TEMPLATE + `additional elements` // NOT SUPPORTED\r\n})\r\nclass Unsupported extends BaseClass {\r\n}\r\n```\r\n\r\nwhere `BASECLASS_TEMPLATE` is exported from the base class' module.\r\n","author":{"url":"https://github.com/chuckjaz","@type":"Person","name":"chuckjaz"},"datePublished":"2017-01-03T23:31:48Z","url":"https://github.com/angular/angular/issues/13764"}

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:1b0eedab-a04e-7666-dc24-f0fce749f5bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD586:3F8AB1:ABE653:DE3FB1:6B00E4AA
html-safe-nonce45bb9a5feab7db61612b89985daa8687c59dfd637259be4bc0b04c3ea40e5a25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTg2OjNGOEFCMTpBQkU2NTM6REUzRkIxOjZCMDBFNEFBIiwidmlzaXRvcl9pZCI6IjY3NzA5NTcyNDc4OTMyNzAxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5467476f3b4e62c485c0a82503dc0cbb86bd84124d0f0d32c1f4b64a7b01b160
hovercard-subject-tagissue:198596231
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/13764/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3366d69a91b361f904206602b721915e02f728e865b6f572ca7600877ada142/angular/angular/issues/13764
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3366d69a91b361f904206602b721915e02f728e865b6f572ca7600877ada142/angular/angular/issues/13764
og:image:altI'm submitting a ... (check one with "x") [x] feature request Problem When specifying a decorator on a component, the descendant decorator overrides the ancestor decorator. This become problematic ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechuckjaz
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/13764#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F13764
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%2F13764
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/13764
Reloadhttps://github.com/angular/angular/issues/13764
Reloadhttps://github.com/angular/angular/issues/13764
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/13764
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/13764
feat: Allow using ancestor decorator values to declare descendant decoratorshttps://github.com/angular/angular/issues/13764#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: component extension and customizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20component%20extension%20and%20customization%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
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/chuckjaz
chuckjazhttps://github.com/chuckjaz
on Jan 3, 2017https://github.com/angular/angular/issues/13764#issue-198596231
https://github.com/fernandocode
fernandocodehttps://github.com/fernandocode
on Jan 5, 2017https://github.com/angular/angular/issues/13764#issuecomment-270625639
@chuckjazhttps://github.com/chuckjaz
this alternative solutionhttp://stackoverflow.com/a/38077209/2290538
As commented by Günter Zöchbauer in the StackOverflow, OTC could have a problem with that.http://stackoverflow.com/questions/36475626/how-to-extend-inherit-angular2-component#comment-63591622
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Jan 5, 2017https://github.com/angular/angular/issues/13764#issuecomment-270626146
https://github.com/fernandocode
fernandocodehttps://github.com/fernandocode
on Jan 5, 2017https://github.com/angular/angular/issues/13764#issuecomment-270630663
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Jan 5, 2017https://github.com/angular/angular/issues/13764#issuecomment-270632124
https://github.com/fernandocode
fernandocodehttps://github.com/fernandocode
on Jan 5, 2017https://github.com/angular/angular/issues/13764#issuecomment-270635653
matskohttps://github.com/matsko
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Jan 5, 2017https://github.com/angular/angular/issues/13764#event-913126992
https://github.com/chuckjaz
chuckjazhttps://github.com/chuckjaz
on Jan 6, 2017https://github.com/angular/angular/issues/13764#issuecomment-270960378
@fernandocodehttps://github.com/fernandocode
https://github.com/aluanhaddad
aluanhaddadhttps://github.com/aluanhaddad
on Jan 10, 2017https://github.com/angular/angular/issues/13764#issuecomment-271518136
@chuckjazhttps://github.com/chuckjaz
https://github.com/fernandocode
fernandocodehttps://github.com/fernandocode
on Jan 10, 2017https://github.com/angular/angular/issues/13764#issuecomment-271550741
@aluanhaddadhttps://github.com/aluanhaddad
language supportshttp://www.typescriptlang.org/docs/handbook/functions.html
lambda C#https://msdn.microsoft.com/en-us/library/bb397687.aspx
https://github.com/chuckjaz
chuckjazhttps://github.com/chuckjaz
on Jan 10, 2017https://github.com/angular/angular/issues/13764#issuecomment-271726231
@aluanhaddadhttps://github.com/aluanhaddad
thishttps://gist.github.com/chuckjaz/65dcc2fd5f4f5463e492ed0cb93bca60
https://github.com/aluanhaddad
aluanhaddadhttps://github.com/aluanhaddad
on Jan 11, 2017https://github.com/angular/angular/issues/13764#issuecomment-271750809
@chuckjazhttps://github.com/chuckjaz
https://github.com/wardbell
wardbellhttps://github.com/wardbell
on Jan 13, 2017https://github.com/angular/angular/issues/13764#issuecomment-272575355
@chuckjazhttps://github.com/chuckjaz
http://plnkr.co/edit/33UgUQHUv2v0u3Y2to9X?p=previewhttp://plnkr.co/edit/33UgUQHUv2v0u3Y2to9X?p=preview
https://github.com/vinagreti
vinagretihttps://github.com/vinagreti
on Mar 29, 2017https://github.com/angular/angular/issues/13764#issuecomment-290135477
@decoratorshttps://github.com/decorators
@componenthttps://github.com/component
chuckjazhttps://github.com/chuckjaz
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Apr 11, 2017https://github.com/angular/angular/issues/13764#event-1039077227
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/13764#event-1437641122
https://github.com/fxck
fxckhttps://github.com/fxck
on Jan 30, 2019https://github.com/angular/angular/issues/13764#issuecomment-459027044
https://github.com/guiferrpereira
guiferrpereirahttps://github.com/guiferrpereira
on Jul 16, 2019https://github.com/angular/angular/issues/13764#issuecomment-511917772
https://github.com/alessiostalla
alessiostallahttps://github.com/alessiostalla
on Dec 22, 2019https://github.com/angular/angular/issues/13764#issuecomment-568244555
https://github.com/abadakhshan
abadakhshanhttps://github.com/abadakhshan
on Jan 13, 2020https://github.com/angular/angular/issues/13764#issuecomment-573525535
Narikhttps://docs.narik.me/04.-ui-inheritance
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: component extension and customizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20component%20extension%20and%20customization%22
on Mar 10, 2020https://github.com/angular/angular/issues/13764#event-3116075810
https://github.com/leonardopliski
leonardopliskihttps://github.com/leonardopliski
on Apr 20, 2020https://github.com/angular/angular/issues/13764#issuecomment-616737703
https://github.com/thw0rted
thw0rtedhttps://github.com/thw0rted
on Sep 28, 2020https://github.com/angular/angular/issues/13764#issuecomment-699925379
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/13764#event-4843540123
https://github.com/lixaotec
lixaotechttps://github.com/lixaotec
on Oct 4, 2021https://github.com/angular/angular/issues/13764#issuecomment-933818125
https://github.com/lixaotec
lixaotechttps://github.com/lixaotec
on Oct 4, 2021https://github.com/angular/angular/issues/13764#issuecomment-933945263
@fernandocodehttps://github.com/fernandocode
https://github.com/abadakhshan
abadakhshanhttps://github.com/abadakhshan
on Oct 5, 2021https://github.com/angular/angular/issues/13764#issuecomment-934085596
@lixaotechttps://github.com/lixaotec
https://abadakhshan.medium.com/implementing-layout-in-angular-21b01a54b71d https://abadakhshan.medium.com/implementing-layout-in-angular-21b01a54b71d
https://github.com/abadakhshan/angular-layout-apphttps://github.com/abadakhshan/angular-layout-app
https://github.com/NarikMe/narik-material-demohttps://github.com/NarikMe/narik-material-demo
https://github.com/alxhub
alxhubhttps://github.com/alxhub
on Jun 6, 2022https://github.com/angular/angular/issues/13764#issuecomment-1148048409
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 6, 2022https://github.com/angular/angular/issues/13764#event-6756874555
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 7, 2022https://github.com/angular/angular/issues/13764#issuecomment-1177860444
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 Jul 7, 2022https://github.com/angular/angular/issues/13764#event-6953273576
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/13764
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/13764
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: component extension and customizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20component%20extension%20and%20customization%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
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.