https://github.com/angular/angular
Raw File
Tip revision: a301b36f1f711ab956e37c4aee0010b44d9810ef authored by Andrew Kushnir on 09 March 2022, 17:04:59 UTC
release: cut the v14.0.0-next.6 release (#45301)
Tip revision: a301b36
control_container.ts
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {AbstractControlDirective} from './abstract_control_directive';
import {Form} from './form_interface';

/**
 * @description
 * A base class for directives that contain multiple registered instances of `NgControl`.
 * Only used by the forms module.
 *
 * @publicApi
 */
export abstract class ControlContainer extends AbstractControlDirective {
  /**
   * @description
   * The name for the control
   */
  // TODO(issue/24571): remove '!'.
  name!: string|number|null;

  /**
   * @description
   * The top-level form directive for the control.
   */
  get formDirective(): Form|null {
    return null;
  }

  /**
   * @description
   * The path to this group.
   */
  override get path(): string[]|null {
    return null;
  }
}
back to top