You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
templates.js (compiled via grunt-angular-templates)
angular.module('app').run(['$templateCache', function($templateCache) {
$templateCache.put('src/components/navigation.html', '<nav>Nav here</nav>'
// Other templates here too
);
I ran into the same issue. For me, though, the issue was what I had in my templateUrl vs what was in template cache. For example, my directives had /src/components/navigation.html, while my template cache was put in as src/components/navigation.html. Make sure your file paths match up exactly
compiled template cache does not work, it still send additional http request to get template.
Can anyone help?
Here is an example of a directive:
navigation.js
templates.js (compiled via grunt-angular-templates)
http://stackoverflow.com/questions/32615698/angularjs-templatecache-for-directive-templates-via-grunt-plugin
The text was updated successfully, but these errors were encountered: