Currently, I'm in the process of creating an angular module called MyModule
. This module includes several sub-modules.
angular.module('MyModule', [
'MyModule.SubModule1',
'MyModule.SubModule2',
'MyModule.SubModule3'
]);
angular.module('MyModule.SubModule1', [
'MyModule.Util'
]);
One thing to note is that the MyModule.Util
module provides helpful functions through a factory. Whether I explicitly export MyModule.Util
or not, it will be exported along with all my modules.
However, my intention is for the MyModule.Util
module to only be used internally by the sub-modules. Is there a way to achieve this?