@micro-router
    Preparing search index...

    Interface History

    The History interface abstracts away all necessary interface with the browser. It is not meant to be use directly. Instead, use the navigator.

    interface History {
        get location(): Location;
        go(idx: number): void;
        observe(handler: (location: Location) => void): () => void;
        push(pathOrLocation: string | Location): void;
        replace(pathOrLocation: string | Location): void;
    }

    Implemented by

    Index
    • Parameters

      • idx: number

      Returns void

    • Subscribe to location updates. Returns a cancel fn that can be invoked to stop observing.

      Parameters

      Returns () => void