The Location service in Angular is described as "A service that applications can use to interact with a browser's URL."
One of its methods, getState()
, provides "the current state of the location history," while another method, subscribe()
, allows users to subscribe to the "platform's popState
events."
While both of these features are useful, I am interested in finding out how to access the observable of Location so that I can apply rxjs operators using .pipe
before utilizing .subscribe
.