UrlSerializer

UrlSerializer

Stable Class

What it does

Serializes and deserializes a URL string into a URL tree.

Class Overview

class UrlSerializer {
  parse(url: string) : UrlTree
  serialize(tree: UrlTree) : string
}

Class Description

The url serialization strategy is customizable. You can make all URLs case insensitive by providing a custom UrlSerializer.

See DefaultUrlSerializer for an example of a URL serializer.