Skip to content

Instantly share code, notes, and snippets.

@ICarpenter
Created May 26, 2014 20:46
Show Gist options
  • Select an option

  • Save ICarpenter/ef29aacf856633bd83ee to your computer and use it in GitHub Desktop.

Select an option

Save ICarpenter/ef29aacf856633bd83ee to your computer and use it in GitHub Desktop.
angular.module('Fn', ['Fn.templates', 'ui.router', 'ui.bootstrap', 'angular-md5', 'ngCookies', 'jmdobry.angular-cache', 'videosharing-embed', 'wu.masonry'])
.config(function ($locationProvider, $anchorScrollProvider) {
$locationProvider.html5Mode(true);
$anchorScrollProvider.disableAutoScrolling();
}).run(function ($angularCacheFactory, $http) {
var cache = $angularCacheFactory('api', { maxAge: 15000, deleteOnExpire: 'passive' });
$http.defaults.cache = cache;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment