UNPKG

ng-grid

Version:

__Contributors:__

15 lines 556 B
ngGridDirectives.directive('ngHeaderRow', ['$compile', '$templateCache', function ($compile, $templateCache) { var ngHeaderRow = { scope: false, compile: function() { return { pre: function($scope, iElement) { if (iElement.children().length === 0) { iElement.append($compile($templateCache.get($scope.gridId + 'headerRowTemplate.html'))($scope)); } } }; } }; return ngHeaderRow; }]);