D
D
Dmitry Arushanov2015-01-29 21:46:39
JavaScript
Dmitry Arushanov, 2015-01-29 21:46:39

AngularJs. How to dynamically connect a module?

Good day to all. There is an application on Angular.Js. Here is the main module.
angular.module('app', ['module1', 'module2']);
Is there any way to dynamically connect modules.
For example, there is an application and several modules that complement it. The set of complementary modules may vary. Is there a mechanism to dynamically connect them.
I do not consider the process of how to find out if this module exists or not, how to find out the name of the module, etc. Let's stop on the fact that I know all this. If the option is to inject my module dynamically.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TekVanDo, 2015-01-29
@TekVanDo

You can - information on the topic habrahabr.ru/post/178753 , or a ready-made extension ocLazyLoad

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question