Questions tagged [angular-templatecache]

gulp-angular-templatecache - Concatenates and registers AngularJS templates in the $templateCache.

GulpJS plugin that combines all your HTML template partials into 1 JS module that can be concatenated into your final app.min file.

Links:

71 questions
0
votes
1 answer

Using $templateCache with ui-router and uglify in angular 1.x

Sharing this as a Qusstion-answer post. What to do when you have to use $templateCache in templateProvider of a route in ui-router and have to utility the code? Injecting does not work, and angular cannot inject by reference. Example : ... …
Sushruth
  • 1,074
  • 1
  • 9
  • 14
0
votes
1 answer

$templateCache not working in angular-config in Angular.js

I am getting "angular.min.js:6Uncaught Error: [$injector:modulerr]" when trying to use $templateCache in my app.config block, if i remove the $templateCache parameter from app.config then i do not see any errors. Please let me know if i missed out…
0
votes
2 answers

UI Router controller not working when view is pulled in with $templateCache?

I am using gulp-angular-templatecache to convert all of my filename.view.html files into a templates.js file. I'm then using $stateProvider to create my states and pull in the templates using $templateCache, with an abstract "root"…
Manno
  • 399
  • 1
  • 3
  • 12
0
votes
0 answers

i want to disable templateCache functionality in gulp

I am using gulp for one of my angular project. I want to know how can i disable the templateCache thing in gulp. I tried commenting some code in build.js but that didn't work. here is the code in build.js. gulp.task('partials', function () { …
pavanshinde
  • 99
  • 1
  • 1
  • 4
0
votes
1 answer

Ionic template cache doesn't work on device, only in browser

I implemented gulp-angular-templatecache-ionic to my Ionic app, which made my application run significantly faster in my desktop chrome browser, but when I build and deploy (ionic run android) this application to my device (LG Nexus 5x) it is still…
0
votes
1 answer

mix.ngTemplates is not a function()

I followed the short tutorial to install an html template cache package in my application: laravel-elixir-ng-templates I installed and configured it exactly as show but now when I try to run gulp I get the following error: This is my…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
0
votes
1 answer

Angular js load template into templateCache using template url

I'm trying to load a template into $templateCache in the module's run block as follows. angular.module('myapp').run(function($http, $templateCache, $timeout) { var templateLocation = 'location/to/template.html'; …
Guranjan Singh
  • 734
  • 2
  • 7
  • 24
0
votes
0 answers

gulp-angular-templatecache wrong module name

I'm having serious problems getting gulp-angular-templatecache to work nicely within my app. I'm using the HotTowel yeomen generator and I modified it a little bit, but I can't seem to get my template cache to use a different module name. Here's the…
exk0730
  • 733
  • 5
  • 20
0
votes
1 answer

Gulp changed ionic.app.css in ionic serve

I work with ionic framework and for better performance I add angular templatecache, sass and generate using gulp. In Action this worked for me But when I serve ionic gulp generate/changed original ionic.app.css And I can't change ionic.app.css. my…
LarakBell
  • 596
  • 1
  • 7
  • 19
0
votes
0 answers

Template URL is wrong for the templateCache in Angularjs using gulp

The template URL loaded after the Gulp build is wrong. i expect the template URL should be $templateCache.put('scripts/app/cinemasList/cinemasList.html') but the actual is…
Shamil
  • 727
  • 1
  • 9
  • 17
0
votes
2 answers

Where should I use $templateCache?

I want to use $templateCache service to add some html into the cache. In Angular documentation example, it only shows the case of using it in run: var myApp = angular.module('myApp', []); myApp.run(function($templateCache) { …
uksz
  • 18,239
  • 30
  • 94
  • 161
0
votes
1 answer

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) { …
yavg
  • 2,761
  • 7
  • 45
  • 115
0
votes
1 answer

Angular main module depends on $templateCache.run() (submodule)

I'm trying to use $templateCache and have the following code: All my templates are compiled in a templates.js: angular.module("gm.templates", []).run(["$templateCache", function($templateCache) {$templateCache.put("/app/app-mc3.html","
Vadorequest
  • 16,593
  • 24
  • 118
  • 215
0
votes
0 answers