Lazy load each required controller after bundling all minified controllers

Posted in General by sudheer mende Tue Nov 20 2018 20:59:09 GMT+0000 (Coordinated Universal Time)·Viewed 2,384 times

I created a minified file with all controllers and named it as all.js, Now it has all controllers in it. Is there any way to add required controllers to this all.js file dynamically. Ex: initially all.js file should have only 'HomeCtrl', when i redirect to profile page, now all.js file should have 'ProfileCtrl' also. based on user actions all.js file should load required controllers in it. Thanks
Markdown is allowed