【发布时间】: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