UNPKG

ajsfw

Version:
21 lines (20 loc) 767 B
import { IRouter } from "ajsfw/routing"; import { INavigator } from "./INavigator"; import { IRedirection } from "./IRedirection"; export declare class Navigator implements INavigator { private __router; protected _lastUrl: string; readonly lastUrl: string; protected _redirections: IRedirection[]; readonly redirections: IRedirection[]; protected _canNavigate: boolean; canNavigate: boolean; constructor(router: IRouter, redirections?: IRedirection[]); registerRedirection(path: string, target: string): void; navigated(): void; navigate(url: string): void; linkClicked(event: MouseEvent): boolean; private __onPopState(event); private __onHashChange(event); private __redirect(url); }