Hey there, glad you got it working !
To get the data from multiple properties youâll want to add them to the filter function, something like:
this.goalList = this.goalList.filter(currentGoal => {
if ( (currentGoal.goalName.toLowerCase().indexOf(searchTerm.toLowerCase()) ||
(currentGoal.otherProperty.toLowerCase().indexOf(searchTerm.toLowerCase())) > -1) {
return true;
} else {
return false;
}
});
Also, I donât know what the end goal is, if youâre looking for something more robust, weâve been using ionic selectable at my company for 2 BIG enterprise apps and both the development team and management team are ultra happy with it hahaha
Ideally i would like the user to make a selection based on name displayed from the search and then be able to pull more fields from the database such as location, date etc when this name is selected.
This all depends on how your data is structured in the DB, if you are pulling the list and the documents have all the properties youâll get them all immediately. You canât tell Firebase âJust send me X, Y, or Z properties of this document.â (Or at least Iâm not aware of it).
Do let me know if this helps, or if you need anything else .