Angularjs2 Refresh Page Not Working

AngularJs2 #(hash) strategy will solve the problem

Solution : If you add the code in app.module.ts the refresh issue in angular js2 will be resolved
providers:
[
{provide: LocationStrategy, useClass: HashLocationStrategy},
HttpModule
 ]
The hash location strategy in router will append # at the end of the URL .

0 comments:

Post a Comment