angular怎么去除url地址栏的#

我知道vue是可以去掉的直接这样
//去掉地址中的哈希#
mode:“history”,
但是angular 怎么去掉哪?

providers: [
{ provide: LocationStrategy, useClass: PathLocationStrategy }
]

Log in to reply

Looks like your connection to Angular开发者 was lost, please wait while we try to reconnect.