PathLocationStrategy

Stable

Class

What it does

Use URL for storing application location data.

Class Overview

class PathLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, href?: string)

onPopState(fn: LocationChangeListener) : void
getBaseHref() : string
prepareExternalUrl(internal: string) : string
path(includeHash?: boolean) : string
pushState(state: any, title: string, url: string, queryParams: string)
replaceState(state: any, title: string, url: string, queryParams: string)
forward() : void
back() : void

}

Class Description

Annotations

@Injectable()

Constructor

constructor(_platformLocation: PlatformLocation, href?: string)

Class Details

exported from @angular/common/index, defined in @angular/common/src/location/path_location_strategy.ts