ngx-route-manager
Version:
A route management library for Angular
31 lines (30 loc) • 918 B
TypeScript
import { RouteParams } from "../functions/convertUrlTo";
import { ExtractStaticSegments, SegmentObject } from "../functions/convertUrlToSegment";
import { ParamsToFunction } from "../functions/createUrlFunction";
export declare class NgxRoute<T extends string> {
/**
* The url path
*/
readonly path: string;
/**
* Function to generate the url, requiring the right params
*/
readonly fn: ParamsToFunction<T>;
/**
* Stores all the params as
*/
private _params;
/**
* Stores all the segments as
*/
private _segments;
constructor(path: string, fn: ParamsToFunction<T>, params: RouteParams<T>, segments: SegmentObject<ExtractStaticSegments<T>>);
/**
* All params store as an object
*/
get params(): RouteParams<T>;
/**
* All segments store as an object
*/
get segments(): SegmentObject<ExtractStaticSegments<T>>;
}