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

on-select doesn't work

Open ghost opened this issue 11 years ago • 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.

ghost avatar Feb 20 '15 10:02 ghost

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

JustGoscha avatar Feb 20 '15 13:02 JustGoscha