/** * Created by wisestone on 2018-03-28. */ 'use strict'; define(['app', 'angular'], function (app, angular) { app.directive('tableUserImage', ["$log", "$compile", function ($log, $compile) { return { restrict : 'AE', compile : function (tElement, tAttrs) { return function (scope, element, attrs) { var makeTag = ""; scope.users = scope[attrs["tableUserImage"]][attrs["target"]]; if (angular.isDefined(scope.users)) { for (var count = 0; count < scope.users.length; count++) { var user = scope.users[count]; if (count > 1) { makeTag += "