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

Interface Input

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

Source from the content-addressed store, hash-verified

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