Ng2LocationServices | @uirouter/angular
Options
All
  • Public
  • Public/Protected
  • All
Menu

A LocationServices that delegates to the Angular LocationStrategy

Hierarchy

  • BaseLocationServices
    • Ng2LocationServices

Implements

  • LocationServices
  • Disposable

Index

Constructors

constructor

  • new Ng2LocationServices(router: UIRouter, _locationStrategy: LocationStrategy, isBrowser: boolean): Ng2LocationServices

Properties

_history

_history: HistoryLike

_listener

_listener: (evt: any) => void

Type declaration

    • (evt: any): void
    • Parameters

      • evt: any

      Returns void

_location

_location: LocationLike

fireAfterUpdate

fireAfterUpdate: boolean

hash

hash: () => any

Type declaration

    • (): any
    • Returns any

path

path: () => any

Type declaration

    • (): any
    • Returns any

search

search: () => any

Type declaration

    • (): any
    • Returns any

Methods

_get

  • _get(): string

_set

  • _set(state: any, title: string, url: string, replace: boolean): any

dispose

  • dispose(router: UIRouter): void

onChange

  • onChange(cb: EventListener): () => Function[]
  • Parameters

    • cb: EventListener

    Returns () => Function[]

      • (): Function[]
      • Returns Function[]

url

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

    • Optional url: string
    • Optional replace: boolean

    Returns string

Generated using TypeDoc