fix(typeahead): use `ng-if` and `track by` for performance improvement