Help please ionic 2


#1

this.webservice.buscaTabelaCliente(clientecodigo, this.loja, this.servidor)
.then((data) => {
this.database.presentToastError(JSON.stringify(data));
}

If data.length == 1 it’s works, but if data.length > 1 not work, why ?
In postman it’s return
[{“tabela”:“0001”,“descricao”:“P1”}]; <- it’s work…

[{“tabela”:“0001”,“descricao”:“P1”},{“tabela”:“0002”,“descricao”:“P2”},{“tabela”:“0003”,“descricao”:“P3”},{“tabela”:“0004”,“descricao”:“PC”}] <_ not work…


#2

Could you invest 2 minutes to write a descriptive title and format your code please?


#3

Need a little more information from you if the community is going to help you out