JustGoscha/allmighty-autocomplete

on-select doesn't work

Opened this issue · 1 comments

Hi,

on-select directive doesn't work, and i couldn't figure out why. Here is my code.

HTML:

 <autocomplete attr-class="autocomplete" on-select="showProduct" ng-model="product"
    placeholder="Arama yapın"
    click-activation="true" data="products" on-type="typed"></autocomplete>

Javascript :

$subscope.showProduct = function () {
    console.log('test');
};

$subscope.typed = function(typedString) {
    console.log('typed :  '  + typedString);
 };

Here typed function works but when i selected the suggested item(hit enter) showProduct function doesn't work.

Could you make a working (!) example on http://plnkr.co, http://codepen.io or http://jsfiddle.net