2
I own a service
that is receiving an array objeto
API with the function below:
getUltimosDados(n: number): Observable<Objeto[]>{
return this.httpClient.get<Objeto[]>(this.enderecoDaApi + '/objetos/');
}
The displayed function returns all objects from within the Observable
. But I want to work only with the last n
vector objects. How can I do this?