This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

HttpParameterCodec

A codec for encoding and decoding parameters in URLs.

See more...

      
      interface HttpParameterCodec {
  encodeKey(key: string): string
  encodeValue(value: string): string
  decodeKey(key: string): string
  decodeValue(value: string): string
}
    

Class implementations

Description

Used by HttpParams.

Methods

encodeKey(key: string): string
      
      encodeKey(key: string): string
    

Parameters

key

Type: string.

Returns

string

encodeValue(value: string): string
      
      encodeValue(value: string): string
    

Parameters

value

Type: string.

Returns

string

decodeKey(key: string): string
      
      decodeKey(key: string): string
    

Parameters

key

Type: string.

Returns

string

decodeValue(value: string): string
      
      decodeValue(value: string): string
    

Parameters

value

Type: string.

Returns

string