allmighty-autocomplete icon indicating copy to clipboard operation
allmighty-autocomplete copied to clipboard

doSomething function not executed

Open welcoMattic opened this issue 11 years ago • 1 comments
trafficstars

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

welcoMattic avatar Jun 29 '14 18:06 welcoMattic

@welcoMattic could you show us a live example?

davidmh avatar Jun 30 '14 19:06 davidmh