#Issue with my observable

7 messages · Page 1 of 1 (latest)

slender obsidian
#

I am working with angular 17. I have a service that have that subscribe to an httpclient. On the subscribe, In the subscribe, i next value two subject.
This service have two getter that transform the subject into an observable.
My component call the two getter to store a reference on these observable. In the html of the component, i got 2 @if that call the observable | async and assign it.
But, it seams the second observable is not trigger because the @if is always false and go in else, do you have an idea of why ?

#

Call of next of subject in the service

#

definition of getters in the service

#

Store of observable in the component

#

if in html

chrome blade
#

What do you see in the console?

cerulean jetty
#

I don't see any subscribe. Only a tap. If you don't subscribe, nothing happens.