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