roundSummaryComponent.js
487 Bytes
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();
}
};
}],
});