Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Can't inject resolve into another resolve #4318

Closed
Astray-git opened this issue Sep 1, 2015 · 2 comments
Closed

Can't inject resolve into another resolve #4318

Astray-git opened this issue Sep 1, 2015 · 2 comments

Comments

@Astray-git
Copy link

I'm using angular 1.3.15, angular-bootstrap 0.13.3
I try to inject the first resolve into the second one:

$modal.open({
    resolve: {
        companyId: function () {
            return 1;
        },
        categories: [
            'companyId',
             function (companyId) {
                 return  Service.getCategories(
                     companyId
                 );
            }
        ],
    },
    //...
});

result in error:
Error: [$injector:unpr] Unknown provider: companyIdProvider <- companyId

@wesleycho
Copy link
Contributor

There is no support for this in UI Bootstrap.

If you want, you could try creating an implementation for this feature - otherwise, it is not likely that this would make it in any time soon.

@wesleycho
Copy link
Contributor

Closing as a duplicate of #3405

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

No branches or pull requests

2 participants