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

Am I able to use ocLazyLoad?

Open vitorcamachoo opened this issue 8 years ago • 0 comments

Hii, I'd like to be able to use ocLazyLoad in one of the available resolves like:

window.deferredBootstrapper.bootstrap({
  element: document.body,
  module: 'App',
  resolve: {
    THEME: function ThemeFn($rootScope, $q, $http, $ocLazyLoad) {
        return $http
           .get('angular module')
           .then(function(moduleName) {
               return $ocLazyLoad.load({ name: moduleName });
           });
    },
  },
});



vitorcamachoo avatar Nov 29 '17 10:11 vitorcamachoo