MCPcopy Index your code
hub / github.com/angular/angular / TestPipe

Class TestPipe

packages/core/test/test_bed_spec.ts:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522 it('should make overridden providers available in pipes', () => {
523 const TOKEN_A = new InjectionToken('TOKEN_A');
524 @Pipe({
525 name: 'testPipe',
526 })
527 class TestPipe {
528 constructor(@Inject(TOKEN_A) private token: string) {}
529
530 transform(value: string): string {
531 return `transformed ${value} using ${this.token} token`;
532 }
533 }
534 @NgModule({
535 imports: [TestPipe],
536 exports: [TestPipe],

Callers

nothing calls this directly

Calls 1

PipeInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…