I'm doing a new service on my Angular 4 app but it does not call the back end, and I do not know what it can be:
//ANGULAR 4
findTipoProducto(): Observable<Combo> {
console.log("entro en findTipoProducto");
return this.http.get(`${this.resourceUrl}/bytipo`);
}
//API REST SPRING
@GetMapping("/combos/bytipo")
@Timed
public ResponseEntity<List<ComboDTO>> getByTipo() {
log.debug("REST request to get Combos by Tipo");
List<ComboDTO> list = comboService.findByTipo(TipoCombos.PRODUCTO);
return new ResponseEntity<>(list, HttpStatus.OK);
}
The project is operational and the rest of things work, it is some syntax in the two pieces of code I have put up.
Thank you very much, if anyone can help me.