src/app/pipes/log-pipe.pipe.tsCopy to clipboard import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'log',
})
export class LogPipe implements PipeTransform {
transform(items: any[], callback: (item: any) => boolean): any {
console.log(items);
src/app/pipes/log-pipe.pipe.spec.tsCopy to clipboard import { LogPipe } from './log-pipe.pipe';
describe('LogPipe', () => {
it('creates an instance', () => {
const pipe = new LogPipe();
expect(pipe).toBeNull();
});
});
src/app/services/shared/shared.module.tsCopy to clipboard import { NgModule } from '@angular/core';
import { LogPipe } from '../../pipes/log-pipe.pipe';
@NgModule({
declarations: [
LogPipe,
],
exports: [
LogPipe,