Hello everyone I've been trying to do this with no luck for a few days.
is there anyway to load asynchronously some js scripts(which contain angular modules) and inject them to the running app after it has been initialized.
Basically I have a container DOM element that will be populated with some HTML requested from the server, based on this HTML code I will decide which js files (modules) will be required, then load them asynchronously inject the modules to the angular app and compile the content with the new injected modules.
I tried but every time I do the bootstrap method injecting the module the Main Controller fires up and erases all my scope state. :(
Any help around here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…