set uib-typeahead attribute Dynamically

I have a Directive which wraps uib-typeahead, the thing is that I want to populate the uib-typeahead with different arrays of objects which means different names for the keys of the objects inside the arrays I have this