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

Method constructor

packages/forms/src/directives/ng_model_group.ts:75–87  ·  view source on GitHub ↗
(
    @Host() @SkipSelf() parent: ControlContainer,
    @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator | ValidatorFn)[],
    @Optional()
    @Self()
    @Inject(NG_ASYNC_VALIDATORS)
    asyncValidators: (AsyncValidator | AsyncValidatorFn)[],
  )

Source from the content-addressed store, hash-verified

73 @Input('ngModelGroup') override name: string = '';
74
75 constructor(
76 @Host() @SkipSelf() parent: ControlContainer,
77 @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator | ValidatorFn)[],
78 @Optional()
79 @Self()
80 @Inject(NG_ASYNC_VALIDATORS)
81 asyncValidators: (AsyncValidator | AsyncValidatorFn)[],
82 ) {
83 super();
84 this._parent = parent;
85 this._setValidators(validators);
86 this._setAsyncValidators(asyncValidators);
87 }
88
89 /** @internal */
90 override _checkParentType(): void {

Callers

nothing calls this directly

Calls 5

HostInterface · 0.90
SkipSelfInterface · 0.90
OptionalInterface · 0.90
SelfInterface · 0.90
InjectInterface · 0.90

Tested by

no test coverage detected