Ng2LocationServices | ui-router-ng2
Options
Menu

Class Ng2LocationServices

A LocationServices that uses the browser hash "#" to get/set the current location

Hierarchy

  • BaseLocationServices
    • Ng2LocationServices

Implements

  • LocationServices
  • Disposable

Index

Constructors

  • new Ng2LocationServices(router: UIRouter, _locationStrategy: LocationStrategy, _platform: PlatformLocation): Ng2LocationServices

Properties

_history: HistoryLike
_listener: function

Type declaration

    • (evt: any): void
    • Parameters

      • evt any

      Returns void

_location: LocationLike
_locationStrategy: LocationStrategy
_platform: PlatformLocation
fireAfterUpdate: boolean
hash: function

Type declaration

    • (): any
    • Returns any

path: function

Type declaration

    • (): any
    • Returns any

search: function

Type declaration

    • (): any
    • Returns any

Methods

  • _get(): string
  • _set(state: any, title: string, url: string, replace: boolean): any
  • dispose(router: UIRouter): void
  • onChange(cb: EventListener): function
  • Parameters

    • cb EventListener

    Returns function

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


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

    • url: Optional  string
    • replace: Optional  boolean

    Returns string


Generated using TypeDoc