Code coverage report for src\components\filters-futer\filters-futer.js

# all files / src/components/filters-futer/ filters-futer.js

77.78% Statements 7/9
0% Branches 0/2
50% Functions 2/4
77.78% Lines 7/9

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    271×
    1×

    1×

    1×
    1×

    1×

    1×

     (function component(ng) {
      ng.module('components')
        .component('exFiltersFuter', {
          templateUrl: './components/filters-futer/filters-futer.html',
          controller: filtersFuterCtrl,
          controllerAs: 'vm',
          bindToController: true,
          bindings: {
          }
        });

      filtersFuterCtrl.$inject = ['checkedButton', '$scope'];

      function filtersFuterCtrl(checkedButton, $scope) {
         var vm = this;

         $scope.$watch(function() {
            return checkedButton.check;
          }, function(newVal) {
            newVal == undefined ? vm.check = true : vm.check = newVal;
          });

          vm.multichecked = checkedButton.setMultichecked;

      }
    })(angular);