JustGoscha / allmighty-autocomplete

Simple to use autocomplete directive in a module for AngularJs!
MIT License
392 stars 232 forks source link

doSomething function not executed #37

Open welcoMattic opened 10 years ago

welcoMattic commented 10 years ago

I try to execute the demo app, but doSomething() function looks like mute. My console.log('test'); inside is not triggered.

The html :

<autocomplete ng-model="result" attr-placeholder="type to search movies..." click-activation="true" data="movies" on-type="doSomething" on-select="doSomethingElse"></autocomplete>

The JS inside my controller :

  $scope.doSomething = function(input) {
    console.log('test');
  }

EDIT:

After debugging test, in autocomplete.js, $scope.onType is undefined

davidmh commented 10 years ago

@welcoMattic could you show us a live example?