Closed borgogelli closed 8 years ago
Hello, according to the documentation, it requires that you include the directive in the dom as well. Since you lazy load growl, you will have to call $compile on the element of DOM that includes growl (<div growl></div>
) so that angular binds the lazy loaded library to this part of dom. After that it should work.
Thank you very much for the advice Now It works.
$ocLazyLoad.load("growl").then(function() {
console.log('loaded!!');
growl = $injector.get('growl');
var el, elToAppend;
elToAppend = $compile('<div growl></div>')($scope);
el = angular.element('#growl');
el.append(elToAppend);
}, function(e) {
console.log('errr');
console.error(e);
})
Greetings from Italy
Andrea
I'd like to use ocLazyLoad and the Growl2 module
.....................
Nothing happens, any advice ? Thank you in advance
Andrea