Check out example codes for "angular typescript refresh page". It will help you in understanding the concepts better.

Code Example 1

this.router.routeReuseStrategy.shouldReuseRoute = function(){
            return false;
         }; => {
            if (evt instanceof NavigationEnd) {
               // trick the Router into believing it's last link wasn't previously loaded
               this.router.navigated = false;
               // if you need to scroll back to top, here is the right place
               window.scrollTo(0, 0);

Learn ReactJs, React Native from