import { ApiInterface } from '../../common/services/api.service';
/** @ngInject */
export function searchForm():angular.IDirective {

  return {
    restrict: 'E',
    scope: {},
    templateUrl: 'app/components/search-form/search-form.view.html',
    controller: SearchFormController,
    controllerAs: 'vm',
    bindToController: true,
    link: function () {
    }
  };

}

/** @ngInject */
class SearchFormController {
  searchResult:any[] = [];
  judges:any[] = [];
  api:any = {};
  searchQuery:string = '';

  constructor(constants:any, Api:ApiInterface) {
    console.log('SearchForm injected!');
    this.api = Api;
    this.api.getData().then(res => {
      this.judges = res;
    });

  }

  findData() {

  }
}

import { ApiInterface } from '../../common/services/api.service';
/** @ngInject */
export function searchForm(): angular.IDirective {

  return {
    restrict: 'E',
    scope: {},
    templateUrl: 'app/components/search-form/search-form.view.html',
    controller: SearchFormController,
    controllerAs: 'vm',
    bindToController: true,
    link: function () {}
  };

}

/** @ngInject */
class SearchFormController {
  searchResult:any[] = [];
  judges:any[] = [];
  api:any = {};
  searchQuery:string = '';

  constructor(constants:any, Api:ApiInterface) {
    console.log('SearchForm injected!');
    this.api = Api;
    this.api.getData().then(res => {
      debugger;
      this.judges = res;
    });

  }
  findData () {

  }
}

--- 
+++ 
@@ -1,6 +1,6 @@
 import { ApiInterface } from '../../common/services/api.service';
 /** @ngInject */
-export function searchForm(): angular.IDirective {
+export function searchForm():angular.IDirective {
 
   return {
     restrict: 'E',
@@ -9,7 +9,8 @@
     controller: SearchFormController,
     controllerAs: 'vm',
     bindToController: true,
-    link: function () {}
+    link: function () {
+    }
   };
 
 }
@@ -25,12 +26,12 @@
     console.log('SearchForm injected!');
     this.api = Api;
     this.api.getData().then(res => {
-      debugger;
       this.judges = res;
     });
 
   }
-  findData () {
+
+  findData() {
 
   }
 }
Reduce lint warnings
delete "debugger"
