[ACS-7597] Convert Core pipes to Standalone # (#9560)

This commit is contained in:
Denys Vuika
2024-04-16 08:18:12 -04:00
committed by GitHub
parent 7854cde20f
commit eaad09b06d
17 changed files with 89 additions and 118 deletions

View File

@@ -17,13 +17,14 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'multiValue' })
@Pipe({
name: 'multiValue',
standalone: true
})
export class MultiValuePipe implements PipeTransform {
static DEFAULT_SEPARATOR = ', ';
transform(values: any | any[], valueSeparator: string = MultiValuePipe.DEFAULT_SEPARATOR): string {
if (values && values instanceof Array) {
return values.join(valueSeparator);
}