angucomplete-alt icon indicating copy to clipboard operation
angucomplete-alt copied to clipboard

Expose `scope.showDropdown` so open/closed state can be controlled from outside

Open krulik opened this issue 8 years ago • 0 comments

Hi, thanks for your work.

I have a use case where I need to programmatically command the autocomplete dropdown to open/close. I saw there's already scope.showDropdown property but it's not exposed in API such that it can be controlled by the user.

Actually what I'm trying to do may as well be a feature by itself - I'd like to open the dropdown when user presses down key or when user clicks inside the input a second time.

I've started to write my own directive over yours but then hit a wall when I understood there's no way to control scope.showDropdown (setting it in my directive and calling $digest didn't work, since it doesn't satisfy other conditions).

WDYT?

Thanks

krulik avatar Nov 22 '16 15:11 krulik