AngularTS
    Preparing search index...

    Class LocationProvider

    Index

    Constructors

    Properties

    _cachedState: any
    _lastBrowserUrl: string
    _lastHistoryState: any
    _urlChangeInit: boolean
    _urlChangeListeners: UrlChangeListener[]
    $get: (
        | "$exceptionHandler"
        | "$rootScope"
        | "$rootElement"
        | (
            (
                $rootScope: Scope,
                $rootElement: HTMLElement,
                $exceptionHandler: ExceptionHandler,
            ) => Location
        )
    )[] = ...
    hashPrefixConf: string
    html5ModeConf: Html5Mode
    lastCachedState: any

    Methods

    • Fires the state or URL change event.

      Returns void

    • Registers a callback that runs when the browser URL changes.

      Parameters

      Returns void

    • Returns the current browser URL with any empty hash (#) removed.

      Returns string

      The normalized browser URL.

    • Updates the browser's current URL and history state.

      Parameters

      • url: string | undefined

        The target URL to navigate to.

      • Optionalstate: any

        Optional history state object to associate with the new URL.

      Returns LocationProvider

      The provider instance.

    • Returns the cached browser history state.

      Returns any

      The cached history state.