window.SubModuleDependencies = [];//add this before you do anything else
// at the end of each module file:
window.SubModuleDependencies.push('yourmoduleName')
// after all that, at the app definition:
app = angular.module("app", SubModuleDependencies
)--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
if(/*some condition*/){
angular.bootstrap(document, ['mainModule','module1']);
}
else{
angular.bootstrap(document, ['mainModule','module2']);
}
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/GznpwAczego/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.