Title: Router nested resolve · Issue #18092 · angular/angular · GitHub
Open Graph Title: Router nested resolve · Issue #18092 · angular/angular
X Title: Router nested resolve · Issue #18092 · angular/angular
Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [X] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submit support request here...
Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [X] Feature request [ ] Documentation issue or request [ ] Support request => P...
X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [X] Feature request [ ] Documentation issue or request [ ] Support request ...
Opengraph URL: https://github.com/angular/angular/issues/18092
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router nested resolve","articleBody":"## I'm submitting a...\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[ ] Bug report \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[X] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nRoute resolve provider functions that are making a request on server are loading and making the request at the same time. It is a normal behavior but there is a situation when one resolve result depends on another, more like promises.\r\n\r\n## Expected behavior\r\nIn Angular.js, using the ui-router, i could inject into a route resolve function an already resolved one. I will put an example code here:\r\n\r\nAs you can see i can use the X result in Y.\r\n\r\nThe thing is that in order to do this in Angular i have to use the ngOnInit function, get the resolved function from a parent route or to make a resolve provider that makes a server request and then does the other. These solutions make the code look bad and i would like to know if there is a solution for this.\r\n\r\nSo, from my experience and knowledge, in Angular i can't inject the result of a previous route resolve like in Angular.js ui-router because i'm forced to provide a class implementing the Resolve Interface that has a function where i can't access previous resolved parameters.\r\n\r\nTo make the question even more clear. i will add 2 more pics with an example of Angular code:\r\n\r\n\r\n\r\n\r\n\r\n## What is the motivation / use case for changing the behavior?\r\nThere are rare cases where one route resolve provider depends on another.","author":{"url":"https://github.com/dragospeta","@type":"Person","name":"dragospeta"},"datePublished":"2017-07-13T09:59:21Z","url":"https://github.com/angular/angular/issues/18092"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:69fa2272-64a2-e498-fb74-c069e3a593a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABC2:19AA62:ACAA53:DCF048:6B00F5F6 |
| html-safe-nonce | 6a8e46c9c64c5d323acf684765c7fe1bad4a04c1dbe2738b7457ff42bb6bb34d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkMyOjE5QUE2MjpBQ0FBNTM6RENGMDQ4OjZCMDBGNUY2IiwidmlzaXRvcl9pZCI6IjMyODYwNjc2OTQ1NzQ1NjQ4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb164a4754cff495fdb98edabe362ad919531d2b70872e3f61e8dc3421271a04 |
| hovercard-subject-tag | issue:242648469 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/18092/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e710da42c09a09f4f2ba39f8d9646e90f622c67d141cf8539f32e42b6ae6c81/angular/angular/issues/18092 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e710da42c09a09f4f2ba39f8d9646e90f622c67d141cf8539f32e42b6ae6c81/angular/angular/issues/18092 |
| og:image:alt | I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [X] Feature request [ ] Documentation issue or request [ ] Support request => P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dragospeta |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width