I have this working
findTest(name: string) {
this.http.get<HttpResponse<any>>(destination, options).subscribe(data => {
console.log(data);
});
Which works, because the response gets printed to console after it arrives. I don't understand how to work with this, so I can do eg.
add() {
const check = this.testsService.findTest(this.name);
console.log(check);
}
(basically, what's the way to make findTest() return data and get those to add() and process further)
Observableso you can subscribe to it in your calling function.