UNPKG

740 BTypeScriptView Raw
1import { LocationConfig, LocationServices } from '../common/coreservices';
2import { UIRouterPlugin } from '../interface';
3import { $InjectorLike, $QLike } from '../common/index';
4export interface LocationPlugin extends UIRouterPlugin {
5 service: LocationServices;
6 configuration: LocationConfig;
7}
8export interface ServicesPlugin extends UIRouterPlugin {
9 $q: $QLike;
10 $injector: $InjectorLike;
11}
12export interface LocationLike {
13 hash: string;
14 pathname: string;
15 search: string;
16}
17export interface HistoryLike {
18 back(distance?: any): void;
19 forward(distance?: any): void;
20 pushState(statedata: any, title?: string, url?: string): void;
21 replaceState(statedata: any, title?: string, url?: string): void;
22}