Skip to content

MarcoSamuel/VueAxios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

VueAxios

Using APIs with Vue js and Axios
Check if you have the node js installed on your machine node --version
If you have not https://nodejs.org/en/
To use db.json you need an json server npm install -g json-server
Then run the command json-server file_name.json

const vue = new Vue({
  el:"#root",
  data:{
    infor:null
   },
   mounted(){
     axios
      .get(['Coloque aqui sua url'])
      .then(response => { this.info = response })
      .catch(error => { console.log(error) })
    }
});

About

Using APIs with Vue js and Axios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages