Completed
Push — master ( 041e06...fdeb03 )
by Andres
01:12
created

src/scripts/component/achievements.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 13
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A achievements.js ➔ achievements 0 5 1
1
'use strict';
2
3
angular.module('game').component('achievements', {
4
  templateUrl: 'views/achievements.html',
5
  controller: ['state', 'data', achievements],
6
  controllerAs: 'ct'
7
});
8
9
function achievements(state, data) {
10
  let ct = this;
11
  ct.state = state;
12
  ct.data = data;
13
}
14