• JMap.History.getHashParameter

    Returns a JS object that contains all key / value entries present in the hash of the url.

    Returns an empty string if parameter's not found.

    Parameters

    • parameterName: string

    Returns string

    Throws

    Error if parameterName is not a valid string

    Example

    // Ex. url = ***http://localhost:8080/services/ng#ngProjectId=0&myvar=test***

    JMap.History.getHashParameter("myvar")
    // returns "test"

    JMap.History.getHashParameter("myvardoesntexist")
    // returns ""