I´m retrieving a String from backend:
String value = "{I am here}";
On my service:
getValue(): Observable<String> {
return this.http.get<String>(this.myURL);
}
On my component I´m subscribing:
String myMessage;
getValue(): void {
this.myService.getValue()
.subscribe(message=> {
this.myMessage= myMessage;
console.log("WHY NOT ENTER HERE?)
);
});
What I´m doing wrong for not even getting the message from console.log?
errorblock to your subscription and console in there to see the error.stringandString.