mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({name: 'testPipe'})
|
|
export class TestPipe implements PipeTransform {
|
|
transform(value: string, arg?: string): string {
|
|
document.body.innerHTML = value;
|
|
return value + arg;
|
|
}
|
|
}
|