Skip to content
This simples allows to apply different startegies ot load templates without caching.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
bower.json
ngHelperDynamicTemplateLoader.js
ngHelperDynamicTemplateLoaderCachingStrategies.js

README.md

ngHelperDynamicTemplateLoader

This simples allows to apply different startegies ot load templates without caching. To install the component in your existing angular app follow these steps:

Install ng-helper-busy

bower install ng-helper-dynamic-template-loader --save

Include the angular module

angular.module('appApp', [
    'ngHelperDynamicTemplateLoader'
]);

Activate the interceptor

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();
})

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :)

Contributors

License

MIT License

You can’t perform that action at this time.