Manually create modules and their dependencies with angularjs -



Manually create modules and their dependencies with angularjs -

we modular application ui divided in components/modules billing area, staff management, real time charts, shipment etc... client pays component/module , modules paid shall loaded on client side. name these paid modules "main modules" on client side because every main module route/button sub content user different claims can different things.

what before angular initialized manually create modules basing on array of licensed module names. modules not licensed not created.

here have understanding problem , can not find similar case in google.

1.) how can tell angularjs load specific module attached controllers/services , depending modules?

2.) happens mutual javascript includes cause immediate creation of angularjs modules?

user @mpm set me on right track. best if files belonging angular module copied on index.html before body tag before index.html sent client side. way client not know how modules loaded. gets modules... server knows , doing still more stuff modules licenced loading module depending endpoints/apicontroller`s.

to sec reply recommend approach, can watch video:

https://www.youtube.com/watch?v=62rvrqumvyg#t=486

from angular conference recommend same approach :-)

angularjs

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -