I have service which returns data as expected when injected to a component. However when i subscribe to the service method and assign the response to a public variable upon initialization of the component. The variable remained to be undefinedI have service which returns data as expected w