Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1.  
  2. editItem(index) {
  3. this.nome = this.cadastro[index].nome;
  4. this.cnpj = this.cadastro[index].cnpj;
  5. this.contato = this.cadastro[index].contato;
  6. this.cadastro.splice(index, 1);
  7.  
  8. },
  9.  
  10. getCondominio() {
  11. let url = "http://localhost:8080/retornos/condominios.json";
  12. axios.get(url).then((response) => {
  13. const dados = response.data;
  14. console.log(dados);
  15. }).catch((error) => {
  16. console.log('ERR: ' + error);
  17.  
  18. }); // axios
  19. }
  20. },
  21. mounted() {
  22. this.getCondominio()
  23. }
  24. });
  25.  
  26.  
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement