Vector burning error on firebase - Ionic 3

1

I'm developing an app, and I need to write a vector in firebase (RealTime). Code:

 irParaCarrinho(element) {  
  element = this.pedido.carrinho;    

if (this.vetCarrinho.indexOf(element) === -1) {
   this.vetCarrinho.push(element); 

So far, all right. However, in the firebase field, it writes exactly like this:

"\n \n Celular\n \n "

Am I recording the wrong way? How do I proceed?

    
asked by anonymous 21.11.2018 / 17:11

0 answers