Angular 2 handle browser refresh

*Follow the given steps:*

 - Put below line in your index.html page
   <base href="./index.html">

- Add useHash attribute in your app.module.ts like:
  RouterModule.forRoot([{ path: '**', redirectTo: 'product' }], { useHash: true })


No comments:

Post a Comment