These two are equivalent (I believe):
@ViewChildren(RoundedContainerComponent) roundedContainers!: QueryList<RoundedContainerComponent>;
private rounded = toObservable(contentChildren(RoundedContainerComponent))
I can call the Query List for changes
this.roundedContainers.changes
.pipe(
takeUntilDestroyed(this.destroyRef),
)
.subscribe(t => {
this.scrollToContainer('-86.0px')
})
How can I do the same for this.rounded (which should be an observable). ‘changes’ is not accessible, only pipe and subscribe.
This doesn’t work on initialisation
this.rounded
.pipe(
takeUntilDestroyed(this.destroyRef),
)
.subscribe(t => {
this.scrollToContainer('-86.0px')
})