ui-router-core
Version:
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
26 lines (25 loc) • 1.06 kB
TypeScript
import { LocationServices, LocationConfig } from "../common/coreservices";
import { UIRouter } from "../router";
export declare const splitHash: (str: string) => string[];
export declare const splitQuery: (str: string) => string[];
export declare const splitEqual: (str: string) => string[];
export declare const trimHashVal: (str: any) => any;
export declare const keyValsToObjectR: (accum: any, [key, val]: [any, any]) => any;
export declare const getParams: (queryString: string) => any;
export declare function parseUrl(url: string): {
path: any;
search: any;
hash: any;
url: string;
};
export declare const buildUrl: (loc: LocationServices) => string;
export declare function locationPluginFactory(name: string, isHtml5: boolean, serviceClass: {
new (router?: UIRouter): LocationServices;
}, configurationClass: {
new (router?: UIRouter, isHtml5?: boolean): LocationConfig;
}): (router: UIRouter) => {
name: string;
service: LocationServices;
configuration: LocationConfig;
dispose: (router: UIRouter) => void;
};