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

Class InputComp

packages/core/test/acceptance/component_spec.ts:931–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929 // The following tests are specifically not in the authoring subdirectory to ensure that AOT doesn't check (and throws) forbidden required reads.
930 it('should throw error if a required input is accessed too early', () => {
931 @Component({
932 selector: 'input-comp',
933 template: 'input:{{input()}}',
934 })
935 class InputComp {
936 input = input.required<number>({debugName: 'input'});
937
938 constructor() {
939 this.input();
940 }
941 }
942
943 @Component({
944 template: `<input-comp [input]="value" />`,

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
requiredMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…