producto.service.ts 360 Bytes
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class ProductoService {

  constructor(private http: HttpClient) { }

  getAll(): Observable<any> {
    return this.http.get('http://10.231.45.179:4705/autoservicio/articulos')
  }

}