I'm trying to get some value in my component, after i make the call on my service
in my service i do :
getMyvar(key) {
return this.http.get<boolean>(URL/param).pipe(res=> of(res))
in my component i'm trying
getApi(key) {
this.result = this.myVar
.getMyvar(key)
.subscribe((valid) => (this.MyVar = valid))
but i'm getting an object like { isScalar = false ... etcv)