@micro-router
    Preparing search index...

    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

    Accessors

    Methods

    Accessors

    Methods

    • Parameters

      • idx: number

      Returns void

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

      Parameters

      Returns () => void

    • Parameters

      Returns void

    • Parameters

      Returns void