Angularjs 在ionic中使用gulp angular templatecache

Angularjs 在ionic中使用gulp angular templatecache,angularjs,ionic-framework,gulp,angular-templatecache,Angularjs,Ionic Framework,Gulp,Angular Templatecache,我遵循了本教程: 我不知道在我的项目中放在哪里。 在这一点上 angular.module("templates").run([$templateCache, function($templateCache) { $templateCache.put("template1.html", // template1.html content (escaped) ); $templateCache.put("template2.html", // template2.ht

我遵循了本教程:

我不知道在我的项目中放在哪里。 在这一点上

angular.module("templates").run([$templateCache,
 function($templateCache) {
  $templateCache.put("template1.html",
   // template1.html content (escaped) 
  );
  $templateCache.put("template2.html",
   // template2.html content (escaped) 
  );
  // etc. 
 }
]);
作为语法,我不确定应该使用哪一部分,我正在明智地遵循本教程

这是我的文件app.js

angular.module('myapp', ['ionic', 'myapp.controllers', 'myapp.services'])

.run(function($ionicPlatform) {
.
.

我有一个问题,这么做我所有的模板都被修改了?因为这就是我需要的。谢谢。

这篇文章就是你要找的,我是为我的一个项目做的


这篇文章就是你要找的,我是为我的一个项目做的