This simples allows to apply different startegies ot load templates without caching. To install the component in your existing angular app follow these steps:
bower install ng-helper-dynamic-template-loader --save
angular.module('appApp', [
'ngHelperDynamicTemplateLoader'
]);
To activate the standard interceptor which is a generic cache buster which add a timestamp to every template/partial request. Just add the following lines of code in the configuration section:
.config(function ($dynamicTemplateLoaderProvider) {
// Register the HTTP interceptors
$dynamicTemplateLoaderProvider.registerInterceptors();
})
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :)