📜  刷新时出现角度 404 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:16.178000             🧑  作者: Mango

代码示例1
Use HashLocation strategy.
Add to top level module
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],