Options
All
  • Public
  • Public/Protected
  • All
Menu

This helper is used to set an anchor part of the url to a list of key value pairs like: #/key/value/key2/value2

Hierarchy

  • UrlHash

Index

Constructors

constructor

Methods

Static get

  • get(key: string, defaultValue?: null | string): undefined | null | string
  • Returns the value for a given key

    Parameters

    • key: string

      The key to retrieve the value for

    • Optional defaultValue: null | string

      Optional value which is returned if the given key does not exist

    Returns undefined | null | string

Static getAll

Static has

  • has(key: string): boolean
  • Checks if a given key is set in the current anchor tag

    Parameters

    • key: string

    Returns boolean

Static Protected parseFromUrl

Static set

  • set(key: string, value: null | string | number): void
  • Sets a single key value pair

    Parameters

    • key: string
    • value: null | string | number

    Returns void

Static setMultiple

Static Protected update

Generated using TypeDoc