-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Modal Resolution Not Using Locals #3405
Comments
I did a look over on how our resolve block is handled in modals and compared it to how ui-router handles their resolve block. Our resolve in comparison is a very simple implementation where all the promises are pushed into an array and $q.all is used. Which is where I think the break down that this issue high lights begins. For comparison if you look at resolve.js from ui-router |
I'm not opening a modal from a modal... |
@BobbieBarker Do you think this should be updated? Is the expected behavior to work like ui-router resolve? |
Looking at the code I don't think the expected behavior is to have an implementation like ui-routers, but also looking at ui-router's implementation I can see where an enhancement could certainly be made. |
The UI Router implementation is quite complex compared to ours. We could copy/paste that code, but that would be duplicate code - it may end up being the best solution though. UI Router is undergoing a large refactor right now in TypeScript for the 1.0 release and potential abstraction to decouple it from Angular itself (so it can be used in Angular 2, or in any other application). |
An update on this - in order to support this, I am willing to have an interface that is pluggable as config for the modal to use and conforms to UI Router's By default, it should use its current implementation when a provided implementation is not present. |
If a modal resolution contains another resolution from the same resolve block it will fail. This is not working as expected (like ui-router).
Steps to reproduce:
JSBin: http://jsbin.com/riyijuqolu/1/edit?js,console,output
Please address.
The text was updated successfully, but these errors were encountered: