blob: add8d486b519aaad6141e4c6a95eba0f815a1481 [file] [log] [blame]
Matteo Scandoloee655a12016-12-19 15:38:43 -08001import IDirective = angular.IDirective;
2export function xosLinkWrapper(): IDirective {
3 return {
4 template: `
5 <a ng-if="col.link" href="{{col.link(item)}}">
6 <div ng-transclude></div>
7 </a>
8 <div ng-transclude ng-if="!col.link"></div>
9 `,
10 restrict: 'A',
11 transclude: true
12 };
13};