Answers for "reloading page 404 angular"

4

angular refresh page without reloading

this.router.navigate(['path/to'])
  .then(() => {
    window.location.reload();
  });
Posted by: Guest on January-06-2021
3

angular 404 on refresh

Use HashLocation strategy.
Add to top level module
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
Posted by: Guest on February-06-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language