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
{provide: LocationStrategy, useClass: HashLocationStrategy},
The hash location strategy in router will append # at the end of the URL .


Popular posts from this blog

Angular cli ng command is not working

warning: LF will be replaced by CRLF in