【问题标题】:Using gulp-angular-templatecache in ionic在 ionic 中使用 gulp-angular-templatecache
【发布时间】:2016-02-22 23:02:02
【问题描述】:

我遵循了这个教程: https://www.npmjs.com/package/gulp-angular-templatecache

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

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) {
.
.

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

【问题讨论】:

    标签: angularjs ionic-framework gulp angular-templatecache


    【解决方案1】:

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

    Gulp Deploy

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-13
      • 2016-10-19
      • 1970-01-01
      • 2015-10-06
      相关资源
      最近更新 更多