All Downloads are FREE. Search and download functionalities are using the official Maven repository.

typescript-angular.encoder.mustache Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy