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;

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 […]