I am trying to load oclazyload by injecting oc.lazyload module dependency in below code:
define([
'angular',
'ui-bootstrap',
'ocLazyLoad'], function initModule(angular) {
'use strict';
angular.module('myModule', [
'oc.lazyLoad'
]);
});
Now if i am using the above component in another module where oc.lazyload module is already being loaded, i get an error on console-
No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.
I guess this error is occurring because oc.lazyload module dependency is being injected twice. Has someone faced any such error while developments with webpack. Please help.