On Apr 5, 10:35 am, ItsLeeOwen <iamthatiamandthatist...@gmail.com>
> Does angularJS have anything in place to lazyload external JS/CSS files
> based on ng-controller namespaces? So that the following would append
> com.myApp.SomeClass.js and com.myApp.SomeClass.css to the document head?
> <div ng-controller="com.myApp.SomeClass"></div>
This only makes sense if the div with the ng-controller is also lazy-
I thought it would be possible to do that with ng-switch, though it
doesn't quite work in this example: