<commit_before>title: Ajax Requests
---
Quasar recommends using `Vue Resource` plugin for VueJs or `Axios`. These package are not provided by default so you will have to npm install them and import them from `src/main.js`.

Get started with the documentation for [vue-resource](https://github.com/pagekit/vue-resource) or [axios](https://github.com/mzabriskie/axios).<commit_msg>Update ajax-requests.md (#99)<commit_after>title: Ajax Requests
---
Quasar recommends using `Vue Resource` plugin for VueJs or `Axios`. These package are not provided by default so you will have to npm install them and import them from `src/main.js`.

## Quickstart with axios
Installation: `npm install axios --save`

Then in your component:
```
 import axios from 'axios'
  export default {
    data () {
    },
    mounted () {
      this.fetchUser()
    },
    methods: {
      fetchUser () {
        axios.get('https://randomuser.me/api/?results=1&noinfo/').then(response => {
          this.user = response.data.results[0]
        }).catch(e => {
          console.log(e)
        })
      }
    }
  }
```

Get started with the documentation for [vue-resource](https://github.com/pagekit/vue-resource) or [axios](https://github.com/mzabriskie/axios).
{'fraction_non_alphanumeric': 0.13047001620745544, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 3.2586206896551726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '944629', 'n_tokens_mistral': 392, 'n_tokens_neox': 375, 'n_words': 113}