LocationStrategylink
LocationStrategy
is responsible for representing and reading route state from the browser's URL. Angular provides two strategies: HashLocationStrategy
and PathLocationStrategy
.
说明
This is used under the hood of the Location
service.
Applications should use the Router
or Location
services to interact with application route state.
For instance, HashLocationStrategy
produces URLs like http://example.com#/foo
, and PathLocationStrategy
produces http://example.com/foo
as an equivalent URL.
See these two classes for more.
方法
参数
返回值
|
参数
返回值
|
参数
返回值
|
参数
返回值
|
参数没有参数。 返回值
|
参数没有参数。 返回值
|
参数
返回值
|
参数没有参数。 返回值
|