Pipe format for Angular 5

#1

I’m facing constant warnings for Pipe changes for Angular 5+

where am i going wrong ?

import { Injectable, Pipe, PipeTransform } from ‘@angular/core’;

@Pipe({
name: ‘keys’
})
@Injectable()
export class KeysPipe implements PipeTransform{
transform(value, args?:string[]): any{
let keys = [];
for(let key in value){
keys.push({key:key, value:value[key]});
}
return keys;
}
}

#2

Don’t do this with pipes; performance will be terrible. Do this operation only when needed in controller code, because you alone know what “when needed” means. Angular will call it far too frequently, and it is a heavy operation.

#3

Titanium TV app provides many TV shows ans new movies for its users for free of cost. use it bro…