Angular Basics: Refresh an Angular Component without reloading the same Component

If you are working with Angular and need to refresh a component without navigation on another component without using  window.location.reload()  or  location.reload(), you can use the following code in your project:

mySubscription: any;