/** * Created by wisestone on 2018-11-06. */ 'use strict'; define(['app'], function (app) { app.directive('issueStatisticsWidget', ['$log', '$rootScope', function ($log, $rootScope) { return { restrict : 'E', scope : { issueStatisticsWidget : '=' }, replace : true, templateUrl : '../custom_components/widget/issue-statistics-widget/issue-statistics-widget.html', controller : function ($scope, $element, $attrs) { // 변수 모음 $scope.vm = { issueStatisticsWidget : {} }; // 함수 모음 $scope.fn = {}; // 전체 이슈 현황 정보가 변경될때 감지한다. $scope.$watch("issueStatisticsWidget", function (newValue) { if ($rootScope.isDefined(newValue)) { // 전체 이슈 현황 정보를 저장한다. $scope.vm.issueStatisticsWidget = newValue; } }); }, link : function (scope, element, attrs) { } }; }]) });