diff options
Diffstat (limited to 'js/vendor/angular-ui/templates/template.js')
-rw-r--r-- | js/vendor/angular-ui/templates/template.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/vendor/angular-ui/templates/template.js b/js/vendor/angular-ui/templates/template.js new file mode 100644 index 000000000..7512cd08e --- /dev/null +++ b/js/vendor/angular-ui/templates/template.js @@ -0,0 +1,21 @@ +angular.module('ui.directives').directive('uiTemplate', ['ui.config', function (uiConfig) { + var options = uiConfig.uiTemplate || {}; + return { + restrict: 'EAC', // supports using directive as element, attribute and class + link: function (iScope, iElement, iAttrs, controller) { + var opts; + + // opts is link element-specific options merged on top of global defaults. If you only extend the global default, then all instances would override each other + opts = angular.extend({}, options, iAttrs.uiTemplate); + + // your logic goes here + } + }; +}]); + + +angular.module('ui.filters').filter('filterTmpl', ['ui.config', function (uiConfig) { + return function (value) { + return value; + }; +}]);
\ No newline at end of file |