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
0 answers

Angular: Dynamically replace data bindings in template

I need to replace special keys in template which I download manually in angular before compiling and inserting into the DOM. Probably angular should have internally such functionallity, so I don't wanna use any 3rd party libraries. Example: …
vromanch
  • 939
  • 10
  • 22
0
votes
2 answers

1 $templateCache, 2 modules

In an angular app, I have a module that I want to use within another. module A defines listController and the list.html file that goes along with that controller All html files are put into $templateCache. In the module A scripts, I…
jmls
  • 2,879
  • 4
  • 34
  • 58
0
votes
1 answer

why $templateCache.removeAll() not working?

I am using $templateCache.removeAll(); to remove cache on LogOut, it is working fine since when I tried $templateCache.get("abc.html") it returns undefined. But when I again load angular app abc.html shows from cache in network of chrome development…
Sunil Madan
  • 457
  • 1
  • 4
  • 17
0
votes
2 answers

How to bypass template cache in angularjs?

When I made changes in any template (html) in my code and refresh from browser then the changes does not occur in application. I want to bypass template cache when I made changes in any template i.e I want when I make any changes in template and…
Sunil Madan
  • 457
  • 1
  • 4
  • 17
0
votes
0 answers

how to read values from templatecache?

I have generated a minified angular app with grunt. In the site I get an error: Cannot GET /views/tabs.html However when I look in the minified script.js I can see: angular.module("app").run(["$templateCache", function($templateCache) { "use…
Leeuwtje
  • 2,161
  • 5
  • 21
  • 28
0
votes
2 answers

Change templateURL of directive dynamically after $http.get()

I'm working on 'skeleton' loading the UI in different components. I have a directive that I'm loading a template initially (this template has low opacity and looks like a mock table). Once I get the data I need in an http.get() then I want to change…
Jon Harding
  • 4,928
  • 13
  • 51
  • 96
0
votes
1 answer

Angularjs: Find element by ID in cached template

I've got several HTML files and I need to extract text content of given elements in these html files and get it into angular as variables. I've decided to use angular $templateRequest to get each HTML file, and $templateCache to store them in cache.…
Rado Koňuch
  • 375
  • 2
  • 8
  • 16
0
votes
0 answers

angular directive store rendered html in template cache

BACKSTORY I have a use case where I use an angular directive to build a fairly beefy form. The compiled directive will be used in multiple places, and rather than having to render the html multiple times, I would like to have the rendered template…
Jaskaye17
  • 627
  • 10
  • 22
0
votes
1 answer

using ng-include along with $templateCache not finding file

I have a directive, where I'm trying to dynamically load different partials depending on an object that is injected into directive function countSummary() { var directive = { scope: { countData: '=' }, link:…
Jon Harding
  • 4,928
  • 13
  • 51
  • 96
0
votes
1 answer

Inject inline templates into $templateCache for Jasmine tests

If all of my templates are in my index.html, with each inside its own block, how can I get them into the $templatecache so that Jasmine knows they exist? Currently, Jasmine treats all of my…
Andrew
  • 14,204
  • 15
  • 60
  • 104
-2
votes
2 answers

Angular 6 template cache problem (for html files) on gulp build

We have template cache problem for html files and we would like to solve it without deleting the cache data(If we delete it, we see performance issue). Do you have any suggestions for it ?
1 2 3 4
5