WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
ProLoser edited this page Mar 28, 2013 · 1 revision

Want to cachebust those ng-include and templateUrl assets? Check out this solution:

myAppModule.config(['$routeProvider', '$provide', function($routeProvider, $provide) {
  $provide.decorator('$http', ['$delegate', function($delegate){
    var get = $delegate.get;
    $delegate.get = function(url, config){
      url += (url.indexOf('?') !== -1) ? '?' : '&';
      url += 'v=' + cacheBustVersion;
      return get(url, config);
    };
  return $delegate;
}]);
  1. overview
  2. fork project
  3. install git client
  4. clone project
  5. install node.js
  6. run node console
  7. install npm
  8. install grunt
  9. build project
  10. start webserver
  11. translate angular.js

Clone this wiki locally