Стратегия МокЛокейшн
Stable Class
Обзор класса
class MockLocationStrategy extends LocationStrategy {
constructor()
internalBaseHref : string
internalPath : string
internalTitle : string
urlChanges : string[]
simulatePopState(url: string) : void
path(includeHash?: boolean) : string
prepareExternalUrl(internal: string) : string
pushState(ctx: any, title: string, path: string, query: string) : void
replaceState(ctx: any, title: string, path: string, query: string) : void
onPopState(fn: (value: any) => void) : void
getBaseHref() : string
back() : void
forward() : void
}
Описание класса
Мок-реализация LocationStrategy, которая позволяет тестам генерировать имитированные события местоположения.
Аннотации
@Injectable()
Конструктор
constructor()
Подробное описание класса
internalBaseHref : string
internalPath : string
internalTitle : string
urlChanges : string[]
simulatePopState(url: string) : void
path(includeHash?: boolean) : string
prepareExternalUrl(internal: string) : string
pushState(ctx: any, title: string, path: string, query: string) : void
replaceState(ctx: any, title: string, path: string, query: string) : void
onPopState(fn: (value: any) => void) : void
getBaseHref() : string
back() : void
forward() : void
экспортировано из @angular/common/testing/index, определено в @angular/common/testing/mock_location_strategy.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/common/testing/index/MockLocationStrategy-class.html