I am currently utilizing angularjs and am interested in loading parts of a page that I organize as "components". Each component includes its own controller, template, directives, and additional assets like CSS. My goal is to load all of these components on demand when necessary.
So far, I have been able to load the controller and the template separately on demand by defining a resolver for the controller and using templateUrl for the template. However, I am curious if there is a way to combine them into a single HTTP request. Are there any examples available?
Apologies for omitting this earlier: I specifically want to achieve this on-demand without precompiled or pre-aggregated files (as per the requirements provided to me). Is there a method to accomplish this?