bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Feature: add 'typeahead-matches' option to bind to matches array for an 'Add All' button

Open bc-jasond opened this issue 11 years ago • 4 comments

would be awesome to expose the scope.matches array in the API to make operations on the whole list like 'add all' and 'remove all'

bc-jasond avatar Oct 13 '15 20:10 bc-jasond

This is an internal - I don't see any particular value with exposing this beyond how it is already exposed. You can already calculate the current matches.

Can you give a strong argument why we should expose it?

wesleycho avatar Oct 13 '15 23:10 wesleycho

How can you already calculate the current matches, can you point me to docs/code? It seems like only one item at a time is available via 'typeahead-on-select' or 'ng-model'.

here's the use case: user types a few letters, the list appears with some items user clicks a button and all list items are returned not just one

bc-jasond avatar Oct 14 '15 18:10 bc-jasond

Right, but why would this be a feature hugely needed? One already has access to the larger array that the matches is a subset of...so this confuses me.

wesleycho avatar Oct 14 '15 18:10 wesleycho

agreed, just use $filter() and the ng-model value. Thanks

bc-jasond avatar Oct 22 '15 21:10 bc-jasond