Yangman - delete_list_item button misses in operations form
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / form / ym-type.controller.js
1 define([], function () {
2     'use strict';
3
4     angular.module('app.yangman').controller('YMTypeCtrl', YMTypeCtrl);
5
6     YMTypeCtrl.$inject = ['$scope'];
7
8     function YMTypeCtrl($scope){
9         var yangType = this;
10
11         // methods
12         yangType.valueChanged = valueChanged;
13
14         /**
15          * Methods for checking correct input
16          */
17         function valueChanged(){
18             $scope.node.checkValueType();
19             $scope.node.fill($scope.node.label, $scope.node.value);
20             $scope.buildRootRequest();
21         }
22     }
23 });