blob: add8d486b519aaad6141e4c6a95eba0f815a1481 [file] [log] [blame]
import IDirective = angular.IDirective;
export function xosLinkWrapper(): IDirective {
return {
template: `
<a ng-if="col.link" href="{{col.link(item)}}">
<div ng-transclude></div>
</a>
<div ng-transclude ng-if="!col.link"></div>
`,
restrict: 'A',
transclude: true
};
};