Advertisement
Guest User

Untitled

a guest
Jan 5th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. buildProduto(): Produto {
  2.     const newProduto = new Produto();
  3.  
  4.     newProduto.nome = this.nomeSelected;
  5.     newProduto.materiaisIDs = this.getMateriaisIds();
  6.     newProduto.categoriaID = this.categoriaSelected.id;
  7.     newProduto.preco = this.precoSelected;
  8.     newProduto.altura = this.getDimensions(this.possiblesHeights);
  9.     newProduto.profundidade = this.getDimensions(this.possiblesDepths);
  10.     newProduto.largura = this.getDimensions(this.possiblesWidths);
  11.     newProduto.restricoes = this.getRestricoes();
  12.     this.getComponentesIds().then(response => newProduto.componentesIDs = response);
  13.    
  14.     // newProduto.componentesIDs = this.getComponentesIds();
  15.  
  16.     return newProduto;
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement