MCPcopy Create free account
hub / github.com/angular/angular / Input

Interface Input

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

Source from the content-addressed store, hash-verified

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