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

Class TestComponent

packages/core/test/resource/resource_spec.ts:826–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825 it('should allow stream from input()', async () => {
826 @Component({
827 selector: 'test',
828 template: `{{ res.value() }}`,
829 })
830 class TestComponent {
831 @Input() value = '';
832 res = resource({
833 params: () => this.value,
834 stream: ({params}) => signal({value: params + ' done'}),
835 });
836 }
837
838 const fixture = TestBed.createComponent(TestComponent, {
839 bindings: [inputBinding('value', signal('a'))],

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
InputInterface · 0.90
resourceFunction · 0.90
signalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…