Blame view

resources/js/predictor/roundSummaryComponent.js 487 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  angular.module('footyroom').component('roundSummary', {
      templateUrl: '/views/ng/predictor/predict/summary.html?7',
      bindings: {
          round: '<',
      },
      controller: ['$route', 'predictService', function ($route, predictService) {
          const vm = this;
  
          vm.viewAs = predictService.getViewAs();
  
          this.refresh = function () {
              if ($route.current.params.id === this.round.id) {
                  $route.reload();
              }
          };
      }],
  });