1 define([], function () {
4 angular.module('app.yangman').controller('YMTypeEnumCtrl', YMTypeEnumCtrl);
6 YMTypeEnumCtrl.$inject = ['$scope'];
8 function YMTypeEnumCtrl($scope){
9 var yangTypeEnum = this;
12 yangTypeEnum.valueChanged = valueChanged;
15 * Methods for checking correct input
17 function valueChanged(){
18 var value = $scope.type.selEnum && $scope.type.selEnum.label ? $scope.type.selEnum.label : '';
20 $scope.type.setLeafValue(value);
21 $scope.node.checkValueType();
22 $scope.node.fill($scope.node.label, $scope.node.value);
23 $scope.buildRootRequest();