6136e4b2f52ab7ffbbed880f6d7f28dc75ed87ec
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / form / case.controller.js
1 define([], function () {
2     'use strict';
3
4     angular.module('app.yangman').controller('CaseCtrl', CaseCtrl);
5
6     CaseCtrl.$inject = ['$scope'];
7
8     function CaseCtrl($scope){
9         var yangCase = this;
10
11         yangCase.empty = ($scope.case.children.length === 0 ||
12                         ($scope.case.children.length === 1 && $scope.case.children[0].children.length === 0));
13
14     }
15 });
16