Skip to content
Snippets Groups Projects
Commit c358c0ba authored by Giuseppe's avatar Giuseppe
Browse files

Added ngfor pipe

parent 391d4d58
No related branches found
No related tags found
No related merge requests found
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'dsObjNgFor'
})
export class ObjNgFor implements PipeTransform {
transform(value: any, args: any[] = null): any {
return Object.keys(value).map((key) => Object.assign({ key }, {value: value[key]}));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment