Skip to content

Instantly share code, notes, and snippets.

@vadimi
Created October 5, 2014 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadimi/d9c3d8b664e96cb6d0fc to your computer and use it in GitHub Desktop.
Save vadimi/d9c3d8b664e96cb6d0fc to your computer and use it in GitHub Desktop.
angular.module('myapp', []).run(['$templateCache', function ($templateCache) {
$templateCache.put('/templates/template1.html', "template1");
$templateCache.put('/templates/template2.html', "template2");
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment