-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
point people to Angular 1.6.7 and $injector.loadNewModules(modules) #411
Comments
@ocombe might be worth deprecating ocLazyLoad? |
How to declarate modules in bundleUrl ? |
app.factory('loadModule', function($injector, $q) {
return function loadModule(moduleName, bundleUrl) {
return $q.resolve(import('./path/to/es/module')).then(function(v) { $injector.loadNewModules([v.default]); });
};
}) |
Is there an implementation of directives for that feature? |
@BusbyActual what? |
You advocated for suggesting this library is deprecated and to suggested to use the $injector.loadNewModules method. How would one load a directive ? |
@BusbyActual you declare the directive in the module you want to load |
If I'm reading this correctly directives will still be an issue. |
Just make sure you compile html in |
see angular/angular.js@6e78fee
$injector.loadNewModules(modules)
The text was updated successfully, but these errors were encountered: