https://github.com/angular/angular
Raw File
Tip revision: 4ce70b9edf9a1a81bd4a3a27d019567e7bfdc03e authored by Ben Lesh on 15 August 2018, 22:35:41 UTC
release: cut the vv7.0.0-beta.2 release
Tip revision: 4ce70b9
control_container.ts
/**
 * @license
 * Copyright Google Inc. 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';


/**
 * A directive that contains multiple `NgControl`s.
 *
 * Only used by the forms module.
 *
 *
 */
export abstract class ControlContainer extends AbstractControlDirective {
  // TODO(issue/24571): remove '!'.
  name !: string;

  /**
   * Get the form to which this container belongs.
   */
  get formDirective(): Form|null { return null; }

  /**
   * Get the path to this container.
   */
  get path(): string[]|null { return null; }
}
back to top