You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import { HttpParameterCodec } from '@angular/common/http';
-
- /**
- * Custom HttpParameterCodec
- * Workaround for https://github.com/angular/angular/issues/18261
- */
- export class CustomHttpParameterCodec implements HttpParameterCodec {
- encodeKey(k: string): string {
- return encodeURIComponent(k);
- }
- encodeValue(v: string): string {
- return encodeURIComponent(v);
- }
- decodeKey(k: string): string {
- return decodeURIComponent(k);
- }
- decodeValue(v: string): string {
- return decodeURIComponent(v);
- }
- }
|