Home load angularjs module only if available
Reply: 0

load angularjs module only if available

user457
1#
user457 Published in April 25, 2018, 7:50 pm

I want to load my sub angularjs module only if it available, I am adding subApp module but if subApp not found then my mainApp module also stop working.

I have searched for this in stack overflow, but I did not get any perfect solution to my problem.

var mainkApp = angular.module('mainApp',['subApp']);

this is my code please give me a solution to my subApp module will load only if exist, thanks

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.505314 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO