angucomplete-alt
angucomplete-alt copied to clipboard
Expose `scope.showDropdown` so open/closed state can be controlled from outside
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