ui-router-core
Version:
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
28 lines (27 loc) • 790 B
TypeScript
/**
* @internalapi
* @module vanilla
*/
/** */
import { LocationConfig, LocationServices } from "../common/coreservices";
import { UIRouterPlugin } from "../interface";
import { $InjectorLike, $QLike } from "../common/index";
export interface LocationPlugin extends UIRouterPlugin {
service: LocationServices;
configuration: LocationConfig;
}
export interface ServicesPlugin extends UIRouterPlugin {
$q: $QLike;
$injector: $InjectorLike;
}
export interface LocationLike {
hash: string;
pathname: string;
search: string;
}
export interface HistoryLike {
back(distance?: any): void;
forward(distance?: any): void;
pushState(statedata: any, title?: string, url?: string): void;
replaceState(statedata: any, title?: string, url?: string): void;
}