charliekassel / vuejs-autocomplete

Autocomplete component for Vue js
MIT License
135 stars 78 forks source link

Ability to pass async function as a source property #86

Open dhivyada opened 4 years ago

dhivyada commented 4 years ago

After this change: If there is already a function that returns a promise, such an async function can be passed to the source prop and the results can be processed. E.g. <autocomplete source="async function(input) { return getResults(input) }"> </autocomplete> Here, getResults is a function when returns a promise

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 71


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Autocomplete.vue 11 31 35.48%
<!-- Total: 11 31 35.48% -->
Totals Coverage Status
Change from base Build 57: -9.5%
Covered Lines: 166
Relevant Lines: 189

💛 - Coveralls