Solved issue with angular ui typehead