Text
hide
Legacy full-string masking.
Use it in your component
Standalone component
import { Component } from '@angular/core';
import { HidePipe } from 'extra-pipe';
@Component({
standalone: true,
imports: [HidePipe],
template: `{{ 'secret' | hide: true: '*' }}`,
})
export class ExampleComponent {
}
Template
{{ 'secret' | hide: true: '*' }}
Try it live.
The output below runs the packed library. Edit data, not code.
Use double quotes for text, or a number, array, object or null.
Ordered parameters: hide, symbol. Locale is controlled separately.
This pipe has no locale override.
Live template data
readonly value = "secret";
readonly parameter0 = true;
readonly parameter1 = "*";
{{ value | hide: parameter0: parameter1 }}
Rendered output
******