# Interface UrlParts

Represents the individual components of a URL.

interface UrlParts {
hash: string;
path: string;
search: Record<
string,
string
| number
| boolean
| (string | number | boolean)[],
>;
}

##### Index

### Properties

hash
path
search

## Properties

### hash

hash: string

The fragment identifier (everything after `#`, not including the `#` itself).

### path

path: string

The URL path (e.g. `/dashboard`, `/users/123`).

### search

search: Record<
string,
string
| number
| boolean
| (string | number | boolean)[],
>

The parsed query string as an object. Mirrors AngularJS’s `$location.setSearch()` format.