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 .

Comments

Popular posts from this blog

Angular cli ng command is not working

warning: LF will be replaced by CRLF in