orizens / ngx-typeahead

A simple but yet powerful typeahead component for Angular (css framework agnostic)
https://www.npmjs.com/package/ngx-typeahead
MIT License
61 stars 29 forks source link

Displaying Data from API #24

Open vivek1996 opened 6 years ago

vivek1996 commented 6 years ago

I want to implement a search box component where users can search any github usernames . Github API Url : https://api.github.com/search/users?q=${username}&per_page=10 result data structure :

{
  "total_count": 10415,
  "incomplete_results": false,
  "items": [
  {
      "login": "vivek",
      "id": 38139,
       .........
    },
   {
   .....
   }
 ]
}

I want to display the items[].login in as the dropdown list. How can I implement the search functionality ? Help me @orizens