src/scripts/component/gethtml.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A angular.component(ꞌgetHtmlꞌ).controller 0 3 1
1
/**
2
 getHtml
3
 Simple component to retrieve the HTML value of a resource.
4
5
 @namespace Components
6
 */
7
'use strict';
8
9
angular.module('game').component('getHtml', {
10
  template: '<span ng-bind-html="ct.util.trustHTML(ct.util.getHTML(ct.value))"></span>',
11
  controller: ['util', function(util) {
12
    this.util = util;
13
  }],
14
  controllerAs: 'ct',
15
  bindings: {
16
    value: '<'
17
  }
18
});
19