cytoplasmic
    Preparing search index...

    Interface Router

    interface Router {
        activeRoute: RefCell<ActiveRoute>;
        onNavigate: Emitter<ActiveRoute>;
        onNavigated: Emitter<ActiveRoute>;
        strategy: RouterStategy;
        getUrl(path: Path): string;
        Link(props: { children: ElementChildren; path: Input<Path> }): Element;
        navigate(path: Path, skipHistory?: boolean): Promise<void>;
        Portal(__namedParameters: {}): Element;
        Provider(__namedParameters: { children: ElementChildren }): Element;
        pushState(path: Path): void;
        resolve(path: Path): ActiveRoute;
    }
    Index

    Properties

    activeRoute: RefCell<ActiveRoute>
    onNavigate: Emitter<ActiveRoute>
    onNavigated: Emitter<ActiveRoute>
    strategy: RouterStategy

    Methods

    • Parameters

      • path: Path
      • OptionalskipHistory: boolean

      Returns Promise<void>

    • Parameters

      • __namedParameters: {}

      Returns Element