Angular 사용 시 템플릿을 프리로드하는 방법이 있습니까?JS 라우팅? Angular 앱이 로드되면 오프라인에서 사용할 수 있는 템플릿이 필요합니다. 다음과 같은 것이 이상적입니다. $routeProvider .when('/p1', { controller: controller1, templateUrl: 'Template1.html', preload: true }) 이것은 @gargc의 답변에 추가된 것입니다. 스크립트 태그를 사용하여 템플릿을 지정하지 않고 파일에서 템플릿을 로드하려면 다음과 같이 하십시오. myApp.run(function ($templateCache, $http) { $http.get('Template1.html', { cache: $templateCache }); }); myAp..