components/termisto/termisto.ts
Function link
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope: any, element) {
scope.popovers = [];
function destroy() {
element.find(TERMI_MATCHER).each(function () {
Function setup
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setup() {
element.find(TERMI_MATCHER).each(function () {
var jqEl: any = angular.element(this);
var viiteId: any = jqEl.attr('data-viite');
TermistoData.getByAvain(viiteId, $stateParams.ktId).then(function(res) {