 
 
 
-korpApp.directive "autoc", ($q, $http, lexicons) ->
+korpApp.directive "autoc", ($q, $http, $timeout, lexicons) ->
     replace: true
     restrict: "E"
     scope:

                    typeahead-template-url="lemgramautocomplete.html"
                    typeahead-loading="isLoading"
                    typeahead-on-select="selectedItem($item, $model, $label)"
                    placeholder="{{placeholderToString(placeholder)}}"></div>
                <div style="margin-left:-20px;margin-top:2px;float:left" ng-if="isLoading"><i class="fa fa-spinner fa-pulse"></i></div>
            </div>
            <div ng-show="disableLemgramAutocomplete">

            </script>
            <div ng-show="!disableLemgramAutocomplete">
                <div style="float:left"><input
                    id="korpAutocompleteInput"
                    autofocus
                    type="text"
                    ng-model="textInField"
