SpyLocation

Experimental

Class

Class Overview

class SpyLocation implements Location {
urlChanges : string[]
setInitialPath(url: string)
setBaseHref(url: string)
path() : string
isCurrentPathEqualTo(path: string, query?: string) : boolean
simulateUrlPop(pathname: string)
simulateHashChange(pathname: string)
prepareExternalUrl(url: string) : string
go(path: string, query?: string)
replaceState(path: string, query?: string)
forward()
back()
subscribe(onNext: (value: any) => void, onThrow?: (error: any) => void, onReturn?: () => void) : Object
normalize(url: string) : string

}

Class Description

Annotations

@Injectable()

Class Details

exported from @angular/common/testing/index, defined in @angular/common/testing/location_mock.ts