3

i had Error 404 and lost my variables in Local Storage my problem when happend then my application upload in server in localhost i have not any problem

2
  • 2
    my problem was in routing module Commented Dec 17, 2018 at 6:28
  • 2
    routing in routing module or in app are the same(nicer to do it in separate module) Commented Dec 17, 2018 at 6:31

1 Answer 1

9

i add UseHash to my routing like this

RouterModule.forRoot(routes, { useHash: true } ) 
Sign up to request clarification or add additional context in comments.

2 Comments

Also make sure "initialNavigation: false"
thanks @Sasikumar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.