Skip to content

Instantly share code, notes, and snippets.

@CliffCrerar
Created November 8, 2023 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CliffCrerar/0a2dfef583ff21f59f3729d9c344271f to your computer and use it in GitHub Desktop.
Save CliffCrerar/0a2dfef583ff21f59f3729d9c344271f to your computer and use it in GitHub Desktop.
Angular pipe used to log values for inspection and debug purposes in an angular template
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'templateLogger',
})
export class TemplateLoggerPipe implements PipeTransform {
transform(value: any) {
console.log('TEMPLATE LOGGER: ', value)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment