Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- editItem(index) {
- this.nome = this.cadastro[index].nome;
- this.cnpj = this.cadastro[index].cnpj;
- this.contato = this.cadastro[index].contato;
- this.cadastro.splice(index, 1);
- },
- getCondominio() {
- let url = "http://localhost:8080/retornos/condominios.json";
- axios.get(url).then((response) => {
- const dados = response.data;
- console.log(dados);
- }).catch((error) => {
- console.log('ERR: ' + error);
- }); // axios
- }
- },
- mounted() {
- this.getCondominio()
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement