0
我跟着这个教程: https://www.npmjs.com/package/gulp-angular-templatecache使用一饮而尽,角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) {
.
.
我有一个问题,这样做我所有的模板被修改?因为这是我需要的。谢谢。