BaseLocationServices | @uirouter/angular
Options
Menu

Class BaseLocationServices

A base LocationServices

Hierarchy

Implements

Index

Constructors

  • Parameters

    • router UIRouter
    • fireAfterUpdate boolean

Properties

_history: HistoryLike
_listeners: Function[] = []
_location: LocationLike
fireAfterUpdate: boolean

Methods

  • _get(): string
  • This should return the current internal URL representation.

  • This should return the current internal URL representation.

    The internal URL includes only the portion that UI-Router matches. It does not include:

    • protocol
    • server
    • port
    • base href or hash

    Returns string


  • _listener(evt: any): void
  • Parameters

    • evt any

    Returns void


  • _set(state: any, title: string, url: string, replace: boolean): any
  • This should set the current URL.

  • This should set the current URL.

    The url param should include only the portion that UI-Router matches on. It should not include:

    • protocol
    • server
    • port
    • base href or hash

    However, after this function completes, the browser URL should reflect the entire (fully qualified) HREF including those data.

    Parameters

    • state any
    • title string
    • url string
    • replace boolean

    Returns any


  • Parameters

    Returns void


  • hash(): any
  • Returns any


  • onChange(cb: EventListener): (Anonymous function)
  • Parameters

    • cb EventListener

    Returns (Anonymous function)


  • path(): any
  • Returns any


  • search(): any
  • Returns any


  • url(url?: string, replace?: boolean): string
  • Parameters

    • url: Optional  string
    • replace: Default value  boolean = true

    Returns string


Generated using TypeDoc