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?