When I call the getObservable('window') in the ScrollSpyService, the service is returning 'undefined'. Can you please point out what the issue mightbe? Here's my setup:
Upon further analysis of the documentation, I found that I was omitting the ScrollSpyDirective from the template. Once added, the function getObservable('window') returns an object correctly.
When I call the getObservable('window') in the ScrollSpyService, the service is returning 'undefined'. Can you please point out what the issue mightbe? Here's my setup:
Module:
Component: