Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages