Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

21 line
555B

  1. import { HttpParameterCodec } from '@angular/common/http';
  2. /**
  3. * Custom HttpParameterCodec
  4. * Workaround for https://github.com/angular/angular/issues/18261
  5. */
  6. export class CustomHttpParameterCodec implements HttpParameterCodec {
  7. encodeKey(k: string): string {
  8. return encodeURIComponent(k);
  9. }
  10. encodeValue(v: string): string {
  11. return encodeURIComponent(v);
  12. }
  13. decodeKey(k: string): string {
  14. return decodeURIComponent(k);
  15. }
  16. decodeValue(v: string): string {
  17. return decodeURIComponent(v);
  18. }
  19. }