First working version, using angular to fill a typeahead input.