aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js
index cf32bdc1..68c40b92 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -813,3 +813,15 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
});
};
}];
+
+
+var scriptTemplateLoader = ['$templateCache', function($templateCache) {
+ return {
+ compile: function(element, attr) {
+ if (attr.type == 'text/ng-template') {
+ var templateUrl = attr.id;
+ $templateCache.put(templateUrl, element.text());
+ }
+ }
+ };
+}];