import { HttpParameterCodec } from '@angular/common/http' ; /**
 * Custom HttpParameterCodec
 * Workaround for https://github.com/angular/angular/issues/18261
 */ export class CustomHttpParameterCodec implements HttpParameterCodec { encodeKey ( k ) { return encodeURIComponent ( k ) ; } encodeValue ( v ) { return encodeURIComponent ( v ) ; } decodeKey ( k ) { return decodeURIComponent ( k ) ; } decodeValue ( v ) { return decodeURIComponent ( v ) ; } }