I'm using this custom made pipe:
import { Pipe, PipeTransform } from '@angular/core';
import { Observable } from 'rxjs';
@Pipe({
name: 'yesno'
})
export class YesNoPipe implements PipeTransform {
constructor() {}
transform(observable: Observable<Array<any>>, args: Array<any>): Observable<Array<any>> {
console.log(args);
return observable...
}
}
Into my template, I'm using:
<div>
{{cols | yesno:'yesno':true | async | json}}
</div>
However, I'm only receiving only first argument "yesno"
.
Any ideas?