Skip to content

Class: FyzTranslatePipe

@flyze/lib-core-angular 1.0.0-alpha.34· latest

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:15

  • PipeTransform
  • OnDestroy

new FyzTranslatePipe(): FyzTranslatePipe

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:30

FyzTranslatePipe

get result(): string

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:26

string

ngOnDestroy(): void

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:84

A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

void

OnDestroy.ngOnDestroy


transform(value, opts?): string

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:36

string

FyzTranslateOptions

string

parse a configuration object instead of a string

PipeTransform.transform

transform(…value): string

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:42

Compatibility signature for callers holding a FyzTranslationConfig | string value. Prefer passing a configuration object.

TranslatePipeParams

string

PipeTransform.transform

transform(value, opts?): string

Defined in: projects/lib-core-angular/src/lib/fyz-translate/pipes/fyz-translate.pipe.ts:52

Consumes a configuration object and returns a translated string.

Inputs are treated as immutable: replace the configuration object to trigger a new translation, mutating it in place is not detected.

FyzTranslationConfig

the translation configuration

FyzTranslateOptions

call-site options, opts.params overrides params carried by value

string

PipeTransform.transform