I am trying to store value from observable to a variable inside the component using a service however it always has the value of undefined. "names" inside subscribe contains value as expected.
this.dataClient.obsNames.subscribe(names => {
this.names = names; //declared above as public names = [];
});
public names = [];... i have also tried changing it's access type to private and it still didn't help - caricaturethis.namesis not actually set toobsNamespayload? How exactly you checked that? - Sergey P. aka azure