René's URL Explorer Experiment


Title: Make resolves/guards injectable/gettable in other resolves/guards on the same level · Issue #15032 · angular/angular · GitHub

Open Graph Title: Make resolves/guards injectable/gettable in other resolves/guards on the same level · Issue #15032 · angular/angular

X Title: Make resolves/guards injectable/gettable in other resolves/guards on the same level · Issue #15032 · angular/angular

Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...

Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...

X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not su...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make resolves/guards injectable/gettable in other resolves/guards on the same level","articleBody":"\u003c!--\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\n-->\n\n**I'm submitting a ...**  (check one with \"x\")\n```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\u003c!-- Describe how the bug manifests. -->\nIn a resolve, we are able to get the data from resolves on the parents, but not from the same level, so we need to do:\n```typescript\n[\n        {\n            canActivate: [PlannerForGuard],\n            canActivateChild: [PlannerForGuard],\n            children: [\n                {\n                    canActivateChild: [PlannerForGuard],\n                    children: [\n                        {\n                            canActivate: [RedirectToLastRunGuard],\n                            canActivateChild: [PlannerForGuard],\n                            children: [\n                                {\n                                    component: RunsComponent,\n                                    path: 'runs/:runId',\n                                    resolve: {\n                                        deleteRun: DeleteRunResolve,\n                                        run: RunResolve\n                                    }\n                                },\n                                {\n                                    canActivate: [RedirectToLastRunGuard],\n                                    component: RunsComponent,\n                                    path: 'runs'\n                                }\n                            ],\n                            component: SimulationComponent,\n                            path: '',\n                            resolve: {\n                                createRun: CreateRunResolve,\n                                createSimulation: CreateSimulationResolve,\n                                deleteSimulation: DeleteSimulationResolve\n                            }\n                        }\n                    ],\n                    path: '',\n                    resolve: {\n                        runs: RunsResolve\n                    }\n                }\n            ],\n            path: '',\n            resolve: {\n                simulation: SimulationResolve\n            }\n        }\n    ]\n```\n\n**Expected behavior**\n\u003c!-- Describe what the behavior would be without the bug. -->\nThis could be so much simplified if resolves/guards can 'wait' for other resolves/guards on the same level, like this (it will also make for less guard checks....):\n```typescript\n[\n    {\n        canActivate: [PlannerForGuard, RedirectToLastRunGuard],\n        canActivateChild: [PlannerForGuard],\n        children: [\n            {\n                component: RunsComponent,\n                path: 'runs/:runId',\n                resolve: {\n                    deleteRun: DeleteRunResolve,\n                    run: RunResolve\n                }\n            },\n            {\n                canActivate: [RedirectToLastRunGuard],\n                component: RunsComponent,\n                path: 'runs'\n            }\n        ],\n        component: SimulationComponent,\n        path: '',\n        resolve: {\n            createRun: CreateRunResolve,\n            createSimulation: CreateSimulationResolve,\n            deleteSimulation: DeleteSimulationResolve,\n            runs: RunsResolve,\n            simulation: SimulationResolve\n        }\n    }\n]\n```\n\n**What is the motivation / use case for changing the behavior?**\n\u003c!-- Describe the motivation or the concrete use case -->\nIt would allow for less, clearer code + less runs of guards + speed up resolving resolves (as it's now done per level) + no more .parent.parent..... to get the parent resolves (or a custom function to search for a resolve by name ;))","author":{"url":"https://github.com/dietergeerts","@type":"Person","name":"dietergeerts"},"datePublished":"2017-03-09T11:18:43Z","url":"https://github.com/angular/angular/issues/15032"}

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:0528e238-6738-e3e5-c9ab-cb247e4fc080
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE684:154D88:97330:C0B8D:6B00F5FD
html-safe-noncee3b115e5e3f3903a40b3553dde8012a446b481947dd348e15686c06b0a2c0288
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjg0OjE1NEQ4ODo5NzMzMDpDMEI4RDo2QjAwRjVGRCIsInZpc2l0b3JfaWQiOiIxMzA2ODE3MjExMTg0MjQ4MzE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac872c3b0325cedb7b7cf7e46644efca80b597e8e46caf6cc54e648e2833e9d558
hovercard-subject-tagissue:213007182
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/15032/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d348a73afbe6042769db75a02fce2d182eb48093b6ca89e43410bcb5e80b57b8/angular/angular/issues/15032
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d348a73afbe6042769db75a02fce2d182eb48093b6ca89e43410bcb5e80b57b8/angular/angular/issues/15032
og:image:altI'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedietergeerts
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/15032#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F15032
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%2F15032
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/15032
Reloadhttps://github.com/angular/angular/issues/15032
Reloadhttps://github.com/angular/angular/issues/15032
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/15032
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/15032
Make resolves/guards injectable/gettable in other resolves/guards on the same levelhttps://github.com/angular/angular/issues/15032#top
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on Mar 9, 2017https://github.com/angular/angular/issues/15032#issue-213007182
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on Mar 9, 2017https://github.com/angular/angular/issues/15032#issuecomment-285326060
IgorMinarhttps://github.com/IgorMinar
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Mar 13, 2017https://github.com/angular/angular/issues/15032#event-997834276
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Mar 13, 2017https://github.com/angular/angular/issues/15032#issuecomment-286212354
@dietergeertshttps://github.com/dietergeerts
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on Mar 20, 2017https://github.com/angular/angular/issues/15032#issuecomment-287777077
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Mar 30, 2017https://github.com/angular/angular/issues/15032#issuecomment-290315271
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Mar 30, 2017https://github.com/angular/angular/issues/15032#issuecomment-290315966
#14279https://github.com/angular/angular/issues/14279
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on Mar 31, 2017https://github.com/angular/angular/issues/15032#issuecomment-290668654
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/kenisteward
kenistewardhttps://github.com/kenisteward
on May 26, 2017https://github.com/angular/angular/issues/15032#issuecomment-304232327
@dietergeertshttps://github.com/dietergeerts
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on May 29, 2017https://github.com/angular/angular/issues/15032#issuecomment-304642305
@kenistewardhttps://github.com/kenisteward
https://github.com/kenisteward
kenistewardhttps://github.com/kenisteward
on May 29, 2017https://github.com/angular/angular/issues/15032#issuecomment-304672534
@dietergeertshttps://github.com/dietergeerts
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on May 31, 2017https://github.com/angular/angular/issues/15032#issuecomment-305091742
https://github.com/kenisteward
kenistewardhttps://github.com/kenisteward
on Jun 5, 2017https://github.com/angular/angular/issues/15032#issuecomment-306078756
@dietergeertshttps://github.com/dietergeerts
https://github.com/dietergeerts
dietergeertshttps://github.com/dietergeerts
on Jun 5, 2017https://github.com/angular/angular/issues/15032#issuecomment-306227278
@kenistewardhttps://github.com/kenisteward
https://github.com/Toub
Toubhttps://github.com/Toub
on Sep 1, 2017https://github.com/angular/angular/issues/15032#issuecomment-326545776
#18247 (comment)https://github.com/angular/angular/issues/18247#issuecomment-320902704
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/15032#event-1437614185
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Jun 9, 2018https://github.com/angular/angular/issues/15032#issuecomment-395963763
#10838https://github.com/angular/angular/issues/10838
angular-robothttps://github.com/apps/angular-robot
votes requiredhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22votes%20required%22
on Jun 5, 2021https://github.com/angular/angular/issues/15032#event-4846756456
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 5, 2021https://github.com/angular/angular/issues/15032#issuecomment-855246996
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 25, 2021https://github.com/angular/angular/issues/15032#issuecomment-868525491
communityhttps://angular.io/resources?category=community
packagehttps://angular.io/guide/creating-libraries
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
insufficient voteshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22insufficient%20votes%22
on Jun 25, 2021https://github.com/angular/angular/issues/15032#event-4940259512
https://github.com/atscott
atscotthttps://github.com/atscott
on Jul 23, 2021https://github.com/angular/angular/issues/15032#issuecomment-885964229
#40577https://github.com/angular/angular/issues/40577
#42953https://github.com/angular/angular/issues/42953
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 23, 2021https://github.com/angular/angular/issues/15032#event-5063466709
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 23, 2021https://github.com/angular/angular/issues/15032#issuecomment-903915034
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 Aug 23, 2021https://github.com/angular/angular/issues/15032#event-5195470467
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/15032
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/15032
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%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.