Created
November 8, 2023 07:44
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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