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