concept subscribe() in category angular
appears as: subscribe()

This is an excerpt from Manning's book Angular Development with Typescript, Second Edition.
We often use the switchMap operator when the data generated by the outer observable (the FormControl, in this case) is given to the inner observable (the getWeather() function): Observable1 - > switchMap(function) - > Observable2 - > subscribe().
A cold observable starts producing data when some code invokes a subscribe() function on it. For example, your app may declare an observable providing a URL on the server to get certain products. The request will be made only when you subscribe to it. If another script makes the same request to the server, it’ll get the same set of data.