All Questions
Tagged with angular-templatecache javascript
26 questions
0
votes
0
answers
69
views
How to add a full angularjs web app into another web app project through node_modules or bower_components?
I have developed a full angularjs web app that I need to Bower install or npm install it into another angularjs project. Do I need to bundle the whole app as one .js file e.g. templateCache.js that ...
1
vote
0
answers
73
views
Putting template in template cache before rendering angular js
I have created a directive to put element html code in template cache-
.directive('putInCache', function ($templateCache) {
return {
link: function (scope, element) {
$...
0
votes
1
answer
59
views
Why it did NOT include <sciprt><script> within a html when I import this html as angularjs directive?
I tried some time, but no luck.
I am using angularjs. I am using @templateCache. https://docs.angularjs.org/api/ng/service/$templateCache
Let's say, I have a angularjs directive naming 'foo', this ...
0
votes
1
answer
266
views
Implement custom way of loading AngularJS templates
In AngularJS you can provide an external template as an script tag or as a html file on the web server. But I need to implement a custom logic of retrieving those templates and none of the methods fit....
1
vote
1
answer
758
views
How to use CachedResourceLoader as an equivalent mechanism to $templateCache in Angular2?
I know there are 2 similar questions about this but with no solution for any of them.
So I found this issue in Angular repo where they ask for the same, i.e an alternative for templateCache in ...
0
votes
0
answers
52
views
angularTemplatecache + gulp not working correctly
I'm using angularTemplatecache with gulp to put all my HTML in a templates.js file but I keep getting an error and cant seem to get it to work.
Uncaught ReferenceError: module is not defined
This ...
0
votes
2
answers
688
views
angular bind scope data to templateCache
I have this function in my controller, which loads in a template
$http.get('scripts/routes/template.html', { cache : $templateCache})
.then(function(val){
var returnedTemplate = val.data; ...
1
vote
1
answer
711
views
gulp-angular-templatecache Module is not available
I am using gulp-angular-templacache.
I have that task that should create a module named templates and I added it as a dependency to my app module:
Configurations:
templateCache: {
file: '...
0
votes
0
answers
59
views
$scope being cached on page in only one method
When this page loads the $scope in each of the methods below contains the same id value. The self.gridData is populated as it should be and accessible in the selectAllClicked method.
When I navigate ...
1
vote
1
answer
1k
views
How to put content of $templateCache.put(...) into html file instead of embedding Html into Javascript?
Embedding HTML in JavaScript like the following code snippet is not maintainable when you have one file app.js and many modules.
app.js
app.config(['$routeProvider', function($routeProvider){
$...
0
votes
1
answer
865
views
Angular $templateCache 404 error for relative templateUrls after bundling
I am using Grails 3 with the AngularJS profile together with the Angular Toastr plugin.
When I run the application in development mode, everything works perfectly but when I bundle the app (without ...
2
votes
0
answers
651
views
Using angular's templateCache in case of large apps
I am working on optimizing a pretty large angularjs application with 100+ templates. I use grunt for automation. What i am trying to achieve here is that i need to prefix all the urls in my production ...
0
votes
1
answer
96
views
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 ...
5
votes
2
answers
549
views
Override $templateCache to be case insensitive
Can one override core provider like $templateCache while maintaining reference to the original provider ?
I'd like to override $templateCache to be case insensitive.
I.E. something like
var ...
0
votes
1
answer
878
views
$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 ...