File

src/app/shared/pipes/encode-uri.pipe.ts

Metadata

Name encodeUri

Methods

transform
transform(value: any)
Parameters :
Name Type Optional
value any No
Returns : any
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'encodeUri'
})
export class EncodeUriPipe implements PipeTransform {
  transform(value: any): any {
    return encodeURIComponent(value);
  }
}

result-matching ""

    No results matching ""