diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-09 15:57:10 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-09 15:57:18 +0200 |
commit | 2824b43b7332e847810f042c4183ce95ee90e852 (patch) | |
tree | 9a10f31c8acbf01d72336d3d065f8c8fda4b83c5 /js/vendor/angular-ui/templates/template.js | |
parent | f0abeddd07fcf21e30c95d58885416ef40d65391 (diff) |
use bower for managing deps
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 |