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