QnaList > Groups > Angularjs > Apr 2016
faq

[AngularJS] Add Angular Module To Main Module Runtime Using Reuqirejs

I am working on Angular Application. I have a application with multiple 
modules. Application structure is like i have a Main Module and at run time 
i want to inject sub modules in main module.
Please help me out.
Thanks in Advance
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 [email protected]
To post to this group, send email to [email protected]
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

asked Apr 4 2016 at 21:53

hardik Patel 's gravatar image



1 Replies for : [AngularJS] Add Angular Module To Main Module Runtime Using Reuqirejs
Hi Hardik,
  According to your requirement ,I am not sure ,there is a way to do this
by angular because you need to load your all modules in browers .Try
this..(might work)
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
)
Regards,
Ashish Kumar
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 [email protected]
To post to this group, send email to [email protected]
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

answered Apr 4 2016 at 22:28

Ashish Kumar 's gravatar image


Related discussions

Tagged

Group Angularjs

asked Apr 4 2016 at 21:53

active Apr 4 2016 at 22:28

posts:2

users:2

Angularjs

©2013 QnaList.com