import { SearchController } from './search.controller';


export function digimapSearch(): ng.IDirective {

  return {
    restrict: 'E',
    templateUrl: '/app/components/search/search.html',
    controller: SearchController,
    controllerAs: 'vm'
  };
}

import { SearchController } from './search.controller';


export function digimapSearch(): ng.IDirective {

  return {
    restrict: 'E',
    scope: {
      extraValues: '='
    },
    templateUrl: 'app/components/search/search.html',
    controller: SearchController,
    controllerAs: 'vm'
  };
}

Add scope and fix templateUrl:
Add scope and fix templateUrl:

Removed leading slash for path to template HTML.

Added scope, this seems to have helped to make the test run
but I can't say for sure.
