2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-08 15:36:24 -07:00
|
|
|
import {AbstractControlDirective} from './abstract_control_directive';
|
2016-06-08 16:38:52 -07:00
|
|
|
import {Form} from './form_interface';
|
|
|
|
|
|
2016-06-08 15:36:24 -07:00
|
|
|
|
|
|
|
|
/**
|
2018-04-05 10:58:12 +01:00
|
|
|
* A directive that contains multiple `NgControl`s.
|
2016-06-08 15:36:24 -07:00
|
|
|
*
|
|
|
|
|
* Only used by the forms module.
|
|
|
|
|
*
|
2018-04-05 22:31:44 +01:00
|
|
|
*
|
2016-06-08 15:36:24 -07:00
|
|
|
*/
|
2017-04-17 11:13:30 -07:00
|
|
|
export abstract class ControlContainer extends AbstractControlDirective {
|
2018-06-18 16:38:33 -07:00
|
|
|
// TODO(issue/24571): remove '!'.
|
|
|
|
|
name !: string;
|
2016-06-08 15:36:24 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the form to which this container belongs.
|
|
|
|
|
*/
|
2017-04-17 11:13:30 -07:00
|
|
|
get formDirective(): Form|null { return null; }
|
2016-06-08 15:36:24 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the path to this container.
|
|
|
|
|
*/
|
2017-04-17 11:13:30 -07:00
|
|
|
get path(): string[]|null { return null; }
|
2016-06-08 15:36:24 -07:00
|
|
|
}
|