UseGetUrlParams
katanakit-js / useGetUrlParams
Function: useGetUrlParams()
Section titled “Function: useGetUrlParams()”function useGetUrlParams(urlString): Record<string, string>;Defined in: core/services/utils.service.ts:560
Parses query parameters from a URL string into a plain object.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
urlString |
string |
Returns
Section titled “Returns”Record<string, string>
Example
Section titled “Example”useGetUrlParams("https://example.com?q=hello&page=1");