tarjetas.service.ts
399 Bytes
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { appSettings } from 'src/etc/AppSettings';
@Injectable({
providedIn: 'root'
})
export class TarjetasService {
constructor(private http: HttpClient) { }
getTarjetas(): Observable<any> {
return this.http.get(`${appSettings.apiUrl}/tarjetas`);
}
}