You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
344 B
TypeScript
20 lines
344 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
import { CommonService } from '../../services/common/common.service';
|
|
|
|
@Pipe({
|
|
name: 'keys'
|
|
})
|
|
export class KeysPipe implements PipeTransform {
|
|
|
|
constructor(
|
|
public cs: CommonService
|
|
) {
|
|
|
|
}
|
|
|
|
transform(obj: any, args?: any): any[] {
|
|
return this.cs.keysInObject(obj);
|
|
}
|
|
|
|
}
|