Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: resolves depending on resolves #75

Open
troygilbert opened this issue Nov 6, 2014 · 1 comment
Open

Feature: resolves depending on resolves #75

troygilbert opened this issue Nov 6, 2014 · 1 comment

Comments

@troygilbert
Copy link

In several situations I've needed to resolve several resources, e.g. A and B, where B depends on A. Since the resolve functions are called in parallel (assuming resolving is async using promises), I'm not able to resolve two resources, rather I have to resolve a single resource, e.g., AandB, and manage the dependency chain with promises inside the resolve function.

This is not that big of a deal to manage, but it does ugly the code a bit and seems like a bit of promise magic could be applied to make the resolve param a bit more powerful.

@troygilbert
Copy link
Author

Just FYI, ui-router supports exactly this functionality and, after porting my routing code over to it, massively cleaned up my code. It's a definite win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant