Angular: Cancelling Observables when switching between Tabs

Consider you have a group of tabs in your application, and you are loading content from an API based on the tab selected.