title: Upgraded to 1.4.1 and now: Argument 'SearchPopover' is not a function, got undefined
body: <p>First I had to fix the following:</p>
  
  <pre><code>controller: SearchPopover
  </code></pre>
  
  <p>Changed to</p>
  
  <pre><code>controller: 'SearchPopover as spop',
  </code></pre>
  
  <p>My Directive &amp; Controller below, I've tried:
  <code>.module('searchPopoverDirectives', ['searchPopoverDirectives.SearchPopover'])</code> but then I get an undetailed error <code>Uncaught Error:</code></p>
  
  <pre><code>(function() { "use strict";
  
  angular
      .module('searchPopoverDirectives', [])
      .directive('searchPopover', directive);
  
  function directive() {
      var directive = {
          templateUrl : 'popovers/searchPopover/searchPopover.html',
          restrict: "E",
          replace: false,
          bindToController: true,
          controller: 'SearchPopover as spop',
          // controllerAs: 'spop',
          link: link,
          scope: {}
      };
      return directive;
      function link(scope, element, attrs) {}
  }
  
  SearchPopover.$inject = [
      '$scope',
      '$rootScope',
      '$timeout',
      'ApiFactory',
      'ScopeFactory',
      'TagFactory',
      'TickersSelectFactory',
      'TagDetailsFactory',
      'ViewFactory'];
  
  function SearchPopover(
      $scope,
      $rootScope,
      $timeout,
      ApiFactory,
      ScopeFactory,
      TagFactory,
      TickersSelectFactory,
      TagDetailsFactory,
      ViewFactory) {
  </code></pre>
  
  <p>Markup</p>
  
  <pre><code>&lt;div ng-controller="SearchPopover" ng-class="{'display-on': searchPopoverDisplay}" class="search-popover"&gt;
      ....
  </code></pre>