-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
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
app.directive('navigation', function() {
return {
restrict: 'E',
templateUrl: 'src/components/navigation.html',
controller: 'NavigationController as navCtrl'
};
})
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
);
Metadata
Metadata
Assignees
Labels
No labels