Skip to content

Instantly share code, notes, and snippets.

@arsenetoumani
Created February 28, 2019 16:39
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 arsenetoumani/bf90607a2655f687024b02d3b75379ea to your computer and use it in GitHub Desktop.
Save arsenetoumani/bf90607a2655f687024b02d3b75379ea to your computer and use it in GitHub Desktop.
'use strict';
var app = angular.module('systelos');
const templates = require.context("../src/app/", true, /.*\.html$/);
app.run(function($templateCache) {
templates.keys().forEach(template => {
$templateCache.put(template.replace("./", "app/"), templates(template));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment