/** * Created by robin on 11/2/15. */ angular.module('luticateUtils') .directive('dialogClose', ['luticateDialogErrorHelper', function (luticateDialogErrorHelper) { return { restrict: 'EA', transclude: true, templateUrl: '/luticateUtils/dialogclose-directive.html', link: function link($scope, element, attrs) { $scope.title = attrs.title; $scope.__close = function() { if ($scope.onClosed) { $scope.onClosed(); } $scope.$close(); }; } }; }]); angular.module("luticateUtils").run(["$templateCache", function($templateCache) { $templateCache.put("/luticateUtils/dialogclose-directive.html", '') }]);