angular-deferred-bootstrap
angular-deferred-bootstrap copied to clipboard
Loading config data from an angular.factory
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.