UrlSerializer
class
Serializes and deserializes a URL string into a URL tree.
abstract class UrlSerializer { abstract parse(url: string): UrlTree abstract serialize(tree: UrlTree): string }
Subclasses
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.
Methods
parse() | ||
---|---|---|
Parse a url into a | ||
|
url | Type: |
Returns
serialize() | ||
---|---|---|
Converts a | ||
|
tree | Type: |
Returns
string
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/router/UrlSerializer