angular-js basic mechanic for dropdown