Closed gunar closed 8 years ago
ng-cache-loader stores template in cache and returns template too. If you do not want to store the template in the cache loader has no advantage.
I see. But using webpack stores the template in a kind of "cache" too, right? The template gets pre-loaded and deduplicated.
Yes, it gets preloaded. This eliminates the asynchronous request, which Angular will do when it encounters a ng-include
directive.
Thank you, @teux.
Hi!
Is using ng-cache-loader better than simply doing `template: require('mytemplate.html')'?
Thank you!