MCPcopy
hub / github.com/angular/angular / Input

Interface Input

packages/core/src/metadata/directives.ts:823–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821 * @publicApi
822 */
823export interface Input {
824 /**
825 * The name of the DOM property to which the input property is bound.
826 */
827 alias?: string;
828
829 /**
830 * Whether the input is required for the directive to function.
831 */
832 required?: boolean;
833
834 /**
835 * Function with which to transform the input value before assigning it to the directive instance.
836 */
837 transform?: (value: any) => any;
838
839 /**
840 * @internal
841 *
842 * Whether the input is a signal input.
843 *
844 * This option exists for JIT compatibility. Users are not expected to use this.
845 * Angular needs a way to capture inputs from classes so that the internal data
846 * structures can be set up. This needs to happen before the component is instantiated.
847 * Due to this, for JIT compilation, signal inputs need an additional decorator
848 * declaring the input. Angular provides a TS transformer to automatically handle this
849 * for JIT usage (e.g. in tests).
850 */
851 isSignal?: boolean;
852}
853
854/**
855 * @Annotation

Callers 15

MyCompClass · 0.90
MyTestCmpClass · 0.90
BothInputImportedClass · 0.90
OptionalInputClass · 0.90
SomeDirClass · 0.90
RequiredClass · 0.90
BaseClass · 0.90
TransformFunctionsClass · 0.90
AppComponentClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…