angular-deferred-bootstrap icon indicating copy to clipboard operation
angular-deferred-bootstrap copied to clipboard

Loading config data from an angular.factory

Open ewahner opened this issue 6 years ago • 0 comments

You state that I should be able to resolve data from a custom service that I have written but it wasn't clear if this could be from an angular.factory.

        deferredBootstrapper.bootstrap({
            element: document.body,
            module: "app",
            resolve: {
                crmConfig: ["tenantService", (tenantService) => tenantService.currentTenant().then((data) => data)]
            }
        });

"tenantService" is declared as an angular.factory. It seems like it doesn't work.

ewahner avatar Sep 02 '19 19:09 ewahner