@knora/action
Version:
Knora ui module: action
14 lines (13 loc) • 526 B
TypeScript
import { PipeTransform } from '@angular/core';
/**
* This pipe can be used for "for loops", in the case of an array with non-numeric indexes.
* It returns the key and the value(s). In the example below the {{item.key}} contains the index value
* and the {{item.value}} contains the value(s).
*
* When the value is an object with name and label, you get them with:
* {{item.value.name}} and {{item.value.label}}
*
*/
export declare class KeyPipe implements PipeTransform {
transform(value: any, args?: any): any;
}