Precompile AngularJS templates to a JS file with $templateCache