What Is HashLocationStrategy?
A
PathLocationStrategy - the default "HTML 5 pushState" style.
A
LocationStrategy
used to configure the Location
service to represent its state in thehash fragment of the browser's URL.PathLocationStrategy - the default "HTML 5 pushState" style.
class HashLocationStrategy extends LocationStrategy {
onPopState(fn: LocationChangeListener): void
getBaseHref(): string
path(includeHash: boolean = false): string
prepareExternalUrl(internal: string): string
pushState(state: any, title: string, path: string, queryParams: string)
replaceState(state: any, title: string, path: string, queryParams: string)
forward(): void
back(): void
// inherited from common/LocationStrategy
abstract path(includeHash?: boolean): string
abstract prepareExternalUrl(internal: string): string
abstract pushState(state: any, title: string, url: string, queryParams: string): void
abstract replaceState(state: any, title: string, url: string, queryParams: string): void
abstract forward(): void
abstract back(): void
abstract onPopState(fn: LocationChangeListener): void
abstract getBaseHref(): string
}
0 comments:
Post a Comment