René's URL Explorer Experiment


Title: Implement @ObserveChildren or similar API · Issue #5467 · angular/angular · GitHub

Open Graph Title: Implement @ObserveChildren or similar API · Issue #5467 · angular/angular

X Title: Implement @ObserveChildren or similar API · Issue #5467 · angular/angular

Description: Previously discussed with @vsavkin and @jeffbcross Background - programmatically listening to events propagated by children is difficult currently. Consider: You have a component and n components: ...

Open Graph Description: Previously discussed with @vsavkin and @jeffbcross Background - programmatically listening to events propagated by children is difficult currently. Consider: You have a component and n ...

X Description: Previously discussed with @vsavkin and @jeffbcross Background - programmatically listening to events propagated by children is difficult currently. Consider: You have a <accordion> component ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement @ObserveChildren or similar API","articleBody":"Previously discussed with @vsavkin and @jeffbcross \n\nBackground - programmatically listening to events propagated by children is difficult currently. \n\nConsider: \nYou have a `\u003caccordion>` component and n `\u003caccordion-item>` components:\n\n```\n\u003caccordion>\n  \u003caccordion-item>\u003c/accordion-item>\n  \u003caccordion-item>\u003c/accordion-item>\n  \u003caccordion-item>\u003c/accordion-item>\n\u003c/accordion>\n```\n\nAn accordion-item component might emit a `select` event/output, used to set it as the currently active item.\n\nCurrently the best way to achieve this is the accordion-item component would inject the parent accordion, and have the accordion-item register itself with the parent, and call a method to close the others\n\n``` typescript\n@Component({selector: 'accordion' })\nclass Accordion {\n  _items: []AccordionItem = [];\n  register(item: AccordionItem){\n    this._items.push(item);\n  }\n  toggleActive(selectedItem:AccordionItem){\n    this._items.forEach(item => {\n      if(item !== selectedItem){\n        item.active = false;\n      }\n    });\n    selectedItem.active = true;\n  }\n}\n\n@Component({selector: 'accordion-item' , inputs: ['active'] })\nclass AccordionItem {\n  active: boolean;\n  constructor(private accordion: Accordion){\n    accordion.register(this);\n  }\n  setActive(){\n    this.accordion.toggleActive(this);\n  }\n}\n```\n\nIdeally, a child component would simply expose a 'select' event:\n\n``` typescript\n@Component({selector: 'accordion-item' })\nclass AccordionItem {\n  @Input() active: boolean;\n  @Output selected:EventEmitter\u003cAccordionItem> = new EventEmitter();\n  active: boolean;\n  setActive(){\n    this.selected.emit(this);\n  }\n}\n```\n\nThe parent accordion can currently easily get ahold of the children via `@ViewChildren()` (or whatever) but there is a not a clean way to listen to events emitted from the children. \n\nProposed Syntax:\n\nImplement a `@ObserveChildren` decorator (or similar) that would enable Observation of events emitted by child components:\n\n``` typescript\n@Component({selector: 'accordion' })\nclass Accordion {\n  //specify type and desired output to Observe.\n  @ObserveChildren(AccordionItem, 'select') childSelections: Observable\u003cAccordionItem>\n  @ViewChildren(AccordionItem) children: Observable\u003cAccordionItem>\n  afterViewInit(){\n    this.updates = Observable\n      .combineLatest(this.children, this.childSelections, (children, selected) => ({children, selected}))\n      .do(({children, selected) => children.map(child => { //update state }))\n      .subscribe();\n  }\n  onDestroy(){\n    this.updates.unsubscribe();\n  }\n}\n```\n\ncc @pkozlowski-opensource @Foxandxss \n","author":{"url":"https://github.com/robwormald","@type":"Person","name":"robwormald"},"datePublished":"2015-11-24T22:01:56Z","url":"https://github.com/angular/angular/issues/5467"}

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:4b0330de-3959-9910-8c79-6bcd745082c2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD036:117C62:194399E:21A92A5:6B0152AA
html-safe-nonce8274e9d917f632a4d54be15e98577c21bb334cc0ed884a1021aa9c3460708fa9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDM2OjExN0M2MjoxOTQzOTlFOjIxQTkyQTU6NkIwMTUyQUEiLCJ2aXNpdG9yX2lkIjoiMjA5NjUxNTIwNDE3NDE0MDA3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac33e7a23f532a23b1056e4fca6f0c48534fc9ccfb4bccd7dbd3260d7dbb96cefa
hovercard-subject-tagissue:118712587
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/5467/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9deb74e2593dc67b4bdbc18af810ee444aa1a01a33132b26b293e88da679c126/angular/angular/issues/5467
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9deb74e2593dc67b4bdbc18af810ee444aa1a01a33132b26b293e88da679c126/angular/angular/issues/5467
og:image:altPreviously discussed with @vsavkin and @jeffbcross Background - programmatically listening to events propagated by children is difficult currently. Consider: You have a component and n ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobwormald
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/5467#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F5467
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%2F5467
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/5467
Reloadhttps://github.com/angular/angular/issues/5467
Reloadhttps://github.com/angular/angular/issues/5467
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/5467
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/5467
Implement @ObserveChildren or similar APIhttps://github.com/angular/angular/issues/5467#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
design complexity: majorhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22design%20complexity%3A%20major%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
hotlist: components teamRelated to Angular CDK or Angular Materialhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20components%20team%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/robwormald
robwormaldhttps://github.com/robwormald
on Nov 24, 2015https://github.com/angular/angular/issues/5467#issue-118712587
@vsavkinhttps://github.com/vsavkin
@jeffbcrosshttps://github.com/jeffbcross
@pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
@Foxandxsshttps://github.com/Foxandxss
Nexthttps://github.com/angular/angular/issues/5467?timeline_page=1
https://github.com/Foxandxss
Foxandxsshttps://github.com/Foxandxss
on Nov 25, 2015https://github.com/angular/angular/issues/5467#issuecomment-159621157
@robwormaldhttps://github.com/robwormald
mheveryhttps://github.com/mhevery
state: Needs Designhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20Needs%20Design%22
on Jan 5, 2016https://github.com/angular/angular/issues/5467#event-506236426
naomiblackhttps://github.com/naomiblack
hotlist: angular-core-teamhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20angular-core-team%22
on Mar 23, 2016https://github.com/angular/angular/issues/5467#event-600486795
https://github.com/fenduru
fenduruhttps://github.com/fenduru
on May 7, 2016https://github.com/angular/angular/issues/5467#issuecomment-217602639
@Foxandxsshttps://github.com/Foxandxss
the change detector complainshttp://plnkr.co/edit/ENPAowo4G3rqw0lngFuG?p=preview
#4062https://github.com/angular/angular/issues/4062
@IgorMinarhttps://github.com/IgorMinar
jelbournhttps://github.com/jelbourn
hotlist: components teamRelated to Angular CDK or Angular Materialhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20components%20team%22
on May 9, 2016https://github.com/angular/angular/issues/5467#event-655062804
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Jun 6, 2016https://github.com/angular/angular/issues/5467#issuecomment-223900729
#4062https://github.com/angular/angular/issues/4062
marclavalhttps://github.com/marclaval
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Oct 4, 2016https://github.com/angular/angular/issues/5467#event-812032370
vicbhttps://github.com/vicb
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Oct 7, 2016https://github.com/angular/angular/issues/5467#event-816842758
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Feb 4, 2017https://github.com/angular/angular/issues/5467#issuecomment-277484970
@robwormaldhttps://github.com/robwormald
#13248https://github.com/angular/angular/issues/13248
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/5467#event-1437662637
https://github.com/splincode
splincodehttps://github.com/splincode
on Jul 26, 2018https://github.com/angular/angular/issues/5467#issuecomment-408140517
@robwormaldhttps://github.com/robwormald
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
on Mar 6, 2020https://github.com/angular/angular/issues/5467#event-3105337831
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Apr 27, 2020https://github.com/angular/angular/issues/5467#event-3274384618
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Apr 27, 2020https://github.com/angular/angular/issues/5467#event-3274385035
https://github.com/ohabash
ohabashhttps://github.com/ohabash
on Apr 29, 2020https://github.com/angular/angular/issues/5467#issuecomment-621521743
https://stackoverflow.com/questions/61513365/output-from-directive-will-print-in-parent-but-cannot-update-a-value-in-parenthttps://stackoverflow.com/questions/61513365/output-from-directive-will-print-in-parent-but-cannot-update-a-value-in-parent
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
design complexity: majorhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22design%20complexity%3A%20major%22
state: Needs Designhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20Needs%20Design%22
on May 20, 2020https://github.com/angular/angular/issues/5467#event-3355846115
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on May 27, 2020https://github.com/angular/angular/issues/5467#event-3378432527
jelbournhttps://github.com/jelbourn
hotlist: angular-core-teamhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20angular-core-team%22
on Sep 22, 2020https://github.com/angular/angular/issues/5467#event-3793768394
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Sep 22, 2020https://github.com/angular/angular/issues/5467#event-3793768797
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
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
on Oct 20, 2020https://github.com/angular/angular/issues/5467#event-3896466500
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 May 21, 2021https://github.com/angular/angular/issues/5467#event-4781297125
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/5467#event-6239501754
https://github.com/thePunderWoman
thePunderWomanhttps://github.com/thePunderWoman
on Oct 17, 2025https://github.com/angular/angular/issues/5467#issuecomment-3417098900
thePunderWomanhttps://github.com/thePunderWoman
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 17, 2025https://github.com/angular/angular/issues/5467#event-20352518742
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 17, 2025https://github.com/angular/angular/issues/5467#issuecomment-3539517574
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 Nov 17, 2025https://github.com/angular/angular/issues/5467#event-20975542382
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/5467
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/5467
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
design complexity: majorhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22design%20complexity%3A%20major%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
hotlist: components teamRelated to Angular CDK or Angular Materialhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20components%20team%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.