AngularTS
    Preparing search index...

    Class LocationProvider

    Index

    Constructors

    Properties

    $get: (string | (($rootScope: Scope, $rootElement: Element) => Location))[] = ...

    Type Declaration

    cachedState: any
    hashPrefixConf: string
    html5ModeConf: Html5Mode
    lastBrowserUrl: string
    lastCachedState: any
    lastHistoryState: any
    urlChangeInit: boolean
    urlChangeListeners: UrlChangeListener[]

    Methods

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

      Returns string

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

      Parameters

      • url: string

        The target URL to navigate to.

      • Optionalstate: any

        Optional history state object to associate with the new URL.

      Returns LocationProvider

    • Returns the cached state.

      Returns any

      The cached state.