yavg
yavg

Reputation: 3051

Using gulp-angular-templatecache in ionic

I followed this tutorial: https://www.npmjs.com/package/gulp-angular-templatecache

I do not know where to put this in my project. in this point..

angular.module("templates").run([$templateCache,
 function($templateCache) {
  $templateCache.put("template1.html",
   // template1.html content (escaped) 
  );
  $templateCache.put("template2.html",
   // template2.html content (escaped) 
  );
  // etc. 
 }
]);

as syntax, I'm not sure which part should go, I'm trying to follow this tutorial judiciously

this is my file app.js

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

.run(function($ionicPlatform) {
.
.

I have a question, doing this all my templates were modified? because this is what I need. thank you.

Upvotes: 0

Views: 1364

Answers (1)

SAMUEL OSPINA
SAMUEL OSPINA

Reputation: 321

In this post is what you lookin for, i did it for one of my project.

Gulp Deploy

Upvotes: 2

Related Questions