In Angular 7, the UrlSegment interface represents a single URL segment, constructor, properties and methods like this:
class UrlSegment {
constructor(path: string, parameters: {…})
path: string
parameters: {…}
toString(): string
}
The UrlSegment is a part of a URL between the two slashes and it contains a path and matrix parameters associated with the segment.