SOLVED SEE BELOW!!!
Working from this question/solution Stackoverflow question .....
I edited the original question I posted here because it is no longer worth reading.
My problem was I could not find documentation on:
- Using dynamic angular-ui-router;
- That makes use of ocLazyLoad;
- Had nested views the main controller did not need to know anything about;
- And it facilitates the pursuit of building a REAL WORLD large-scale angular application comprising of a myriad of modules, many of which are simultaneously required in just one view, and again, often without the main controller of that view never needing to know anything about those nested views or how they work;
- And! As a bonus, allow me to add those modules used by many states in some base state, so I would never need to load them again (this does not apply to services).
As example:
What if I had a page, called MyDashboard, that may contain typical info on something that MyDashboard would contain.
But what if I wanted to show graphs on that page, and I did not want MyDashboard controller to know about those graphs?
What if I had a To-Do list that I used throughout my app and did not want MyDashboard controller to know anything about those to-dos?
Is there a way I can add dependencies for nested views that MyDashboard controller need not know how they work, WHILE AT THE SAME TIME HAVE DYNAMIC STATE?
Is there a way I could, while creating ---DYNAMIC--- state views, just supplant those dependencies I needed for that view, often w/o the controller never needing to know anything about them?
I think the below is the best solution to creating a large scale REAL WORLD, agnostic, angular app, with dependencies loaded on a "need-to-have" basis.
I scoured ocombe's github for such a solution. You won't find it.
I offer the below 'Ronco-Automatic' solution to the community. It slices, it dices, it peels. I hope it helps you.
Post Script: This is not your father's 'Hello World' sappy example.
This solution , it's work for me
In config.lazyload.js
In config.router.js
config.router.js will load 2 module ngFileUpload , angularFileUpload and all files defined from config.lazyload.js ,at here I can load 2 module and more if you want
You WILL NOT find this in the documentation:
My Json format:
It works !!!!!!!!!!!