title: vue js axios response to array list
body: <p>i am working a typeahead. and my typeahead accept a array list like ['Canada', 'USA', 'Mexico'].
  and now i have a axios api to get a list of country. but i don't know how can i convert to a array list. Now work if hardcode a country list.</p>
  
  <pre><code>&lt;vue-bootstrap-typeahead
   :data="addresses"
   v-model="addressSearch"
  /&gt;
  data() {
   return {
    addresses: ['Canada', 'USA', 'Mexico'],
    addressSearch: '',
   }
  },
  axios.get('api_link', {})
    .then(function (response) {
    //How can i create a array list from api return useing name like addresses?
  })
  </code></pre>
  
  <p>And my api return:
      [
          {
              "id": 1,
              "name": "Canada"
          },
          {
              "id": 2,
              "name": "USA"
          },
      ]</p>