the name of the parameter
the function that will be processed when the property changed
the listener id, can be used to remove the listener with JMap.History.removePropertyChangeListener
Error if parameterName is not a valid string or fn is not a function
const listenerId = JMap.History.onParameterChange("ngProjectId", (oldValue, newValue) => {
console.log(`In the url hash the parameter "ngProjectId" has changed from "${oldValue}" to "${newValue}"`)
})
JMap.History.onParameterChange
You can attach a listener that listen for url hash params change.
The function returns the listener id that can be used after to remove the listener.