File

projects/web-mev/src/app/features/workspace-detail/pipes/annotation-files.ts

Description

Pipe to include only annotation files from the list of all available resources

Metadata

Name annotationFilesPipe

Methods

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

/**
 * Pipe to include only annotation files from the list of all available resources
 */
@Pipe({
  name: 'annotationFilesPipe'
})
export class AnnotationFilesPipe implements PipeTransform {
  transform(value: any): any {
    return value.filter(item => item.resource_type == 'ANN');
  }
}

result-matching ""

    No results matching ""