All Questions
Tagged with angular-templatecache angularjs
66 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 ...
0
votes
1
answer
1k
views
$uibModal not loading correct content on first click
I'm working in ServiceNow and am trying to use $uibModal to open up a modal window that holds an embedded widget. The modal opens fine on the first click, but every click after that requires two ...
0
votes
1
answer
556
views
$templateCache, ng-template and caching issues - angularjs
I am trying to cache my angularjs application's html files, following this suggestion: https://gist.github.com/ProLoser/6181026.
I am appending a dynamic cache key like ?v=123456790 to all html ...
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
335
views
TemplateCache of NPM Modules not loading (AngularJS 1.X and Webpack)
I created a angular 1.x project using fountain-angular yeoman generator with webpack for module management.
I then added angular-strap as a dependency to this project.
Now when i try to use angular-...
0
votes
1
answer
262
views
ui-Router templateUrl not able to find $templateCache template in app-release.js
I use Gulp-angular-templatecache to cache my html templates into templates-cache.js and then I use Gulp-browsify to compile my app.js file to generate app-release.js file which contains all the code ...
0
votes
0
answers
69
views
AngularJS- how to call a function programatically, in the same way it's called through user interaction?
I have taken on the development of an AngularJS application, and one of the forms in the application uses the ngTagsInput library to add user input to a widget as 'tag' elements (for example, variable ...
1
vote
1
answer
124
views
How to use $templateCache for partials that are used in ui-router?
.state ('pages', {
url: '/pages',
templateUrl: 'views/common.html'
})
<script type="text/ng-template" id="common.html">
how to use this using Ui-router?
0
votes
1
answer
255
views
use $templateCache via script tag
I will use the $templateCache script tag to show my html view.
Currently I have ,
<body ng-app="myApp">
<div ng-controller="myAppController">
....
....
<div class="col-...
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 ...
3
votes
1
answer
1k
views
How to build unified $templateCache when migrating AngularJS 1.x project from gulp & bower to webpack 3
Have a large AngularJS 1.6 project (~120 JS files), which is currently built through gulp/bower.
Looking to migrate over to using yarn & webpack, and we would prefer not to have to modify our ...
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
1
answer
500
views
templateCaching on uibmodal
I've been working for a while to get my application to work when a user goes offline. I've used $http and templateCache to cache my templates which is fine. But, one issue i can't seem to solve in a "...
3
votes
1
answer
752
views
Angular 1.x Testing with Jasmine: Compiling a template not working to verify data output in template
I am trying to unit test an html template that has variables in paragraph, anchor tags, and {{header.title || translate}} however no matter what posts I have tried it does not seem to work. I get the ...