Options
All
  • Public
  • Public/Protected
  • All
Menu

An url serializer that converts the path of an url to lower case while not touching the query or fragment part.

This will make your angular router accept paths in any case, like /home or /Home or /HOME

See e.g. this question on stack overflow

Usage: Add this code snippet to the providers of you module declaration:

providers: [
  { provide: UrlSerializer, useClass: LowerCaseUrlSerializer },
],

Hierarchy

  • DefaultUrlSerializer
    • LowerCaseUrlSerializer

Implements

  • UrlSerializer

Index

Methods

Methods

parse

  • parse(url: string): UrlTree

serialize

  • serialize(tree: UrlTree): string
  • Converts a UrlTree into a url

    Parameters

    • tree: UrlTree

    Returns string

Generated using TypeDoc