mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ACS-7597] Convert Core pipes to Standalone # (#9560)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user