Angular directive for create dropdowns