0
我正在構建一個沒有咕嚕咕嚕或glup的過程,並且想要ngtemplate,因爲團隊使用它,但無法找到它的獨立包,但我願意在新系統中創建一個只需要一個正確的方向。Ngtemplate出咕嚕或glup
我正在構建一個沒有咕嚕咕嚕或glup的過程,並且想要ngtemplate,因爲團隊使用它,但無法找到它的獨立包,但我願意在新系統中創建一個只需要一個正確的方向。Ngtemplate出咕嚕或glup
你可以寫一個簡單的JS腳本,通過所有的目錄遍歷除node_modules或bower_components與.html擴展讀取該文件,內容追加到文件templates.js 您templates.js可能看起來像這樣
angular.module('templates').run(['$templateCache',
function($templateCache) {
$templateCache.put('filename1','filecontent1');
$templateCache.put('filename2','filecontent2');
}]);
如果有幫助,請接受答案 – user93
讓我試試這個並回復給你。 – ZergRush