angular 没有哈希的路由
angular Routing without Hash
我想要 angular 在 Url 中没有散列的路由。
我想要 Url 作为 http://localhost:56629/Victoria/Home
因此,使用此位置提供程序是将 Html5 模式设置为真。
但是现在 Url 变成了 http://localhost:56629/Victoria#%2F/Home。我猜它采用 ('/')
的 ascii 值
但争议在于这个 (Victoria) 不是静态名称。这个名字是 Binding with angular Binding.
通过在服务器端设置路由,这个问题就解决了
我想要 angular 在 Url 中没有散列的路由。 我想要 Url 作为 http://localhost:56629/Victoria/Home
因此,使用此位置提供程序是将 Html5 模式设置为真。
但是现在 Url 变成了 http://localhost:56629/Victoria#%2F/Home。我猜它采用 ('/')
的 ascii 值但争议在于这个 (Victoria) 不是静态名称。这个名字是 Binding with angular Binding.
通过在服务器端设置路由,这个问题就解决了