File

src/lib/decorators/control-set-value.ts

Index

Properties

Properties

initial
initial: boolean
Type : boolean
Optional
propertyKey
propertyKey: string
Type : string
import { setMetadataMapSet } from '@rxap/reflect-metadata';
import { MetadataKeys } from './metadata-keys';

export interface ControlSetValueOptions {
  propertyKey: string;
  initial?: boolean;
}

export function ControlSetValue(controlId: string, options: Omit<ControlSetValueOptions, 'propertyKey'> = {}) {

  return function (target: any, propertyKey: string) {

    setMetadataMapSet(controlId, {
      ...options,
      propertyKey,
    }, MetadataKeys.CONTROL_SET_VALUE, target);

  };

}

results matching ""

    No results matching ""