grunt-html2js
Version:
Compiles AngularJS templates to JavaScript
12 lines (10 loc) • 503 B
JavaScript
define(['angular'], function(angular){angular.module('templates-amd_module', ['../test/fixtures/one.tpl.html', '../test/fixtures/two.tpl.html']);
angular.module('../test/fixtures/one.tpl.html', []).run(['$templateCache', function($templateCache) {
$templateCache.put('../test/fixtures/one.tpl.html',
'1 2 3');
}]);
angular.module('../test/fixtures/two.tpl.html', []).run(['$templateCache', function($templateCache) {
$templateCache.put('../test/fixtures/two.tpl.html',
'Testing');
}]);
});