i am working on an angular 8 project , everything work's fine until i press browser's back button , when i press back button my external javascript doesn't work.
i used javascript in several way such as ( import - require - putting them in index.html and ...) for testing but the result was the same
i also used below code to detect back
router.events.subscribe((event: NavigationStart) => {
     if (event.navigationTrigger === 'popstate') {
     // window.location.reload();
   }     
});
notice that i don't want to reload the entire page. is this angular bug ? or what ? 
 
    