Angular 4, browser refresh page restarts everything -


working on angular 4 web app using json web token authenticate pages. jwt token saved in auth service variable. if token null redirect login page. when login successes, save token in auth service variable. problem is, when browser refresh page button clicked, whole app reloaded, ngoninit() of appcomponent called , restarted, result current page lost , login page shows up. want is, refresh component being displayed without restart appcomponent. how can this? browser refresh action under control?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -