Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

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.

share|improve this question
up vote 2 down vote accepted

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

Gulp Deploy

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.