Combobox in ionic v1

Hello guys,

I am working on an ERP app and it is full of combo-boxes on the web version. I have to bring the similar functionality to the mobile front.

I need to make combos on mobile , how do I go about it on the mobile. I was hoping to make a directive for it.

An ionic modal with a search bar at the top of the page works, but the combo needs to be dynamic, i.e the values with come a from a table in the sqlite db, then on selection of a value from the combo , other combos will be loaded. Also every combo uses a different table.

How do I go about it in terms of designing a directive so I can generalize stuff to a maximum.