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-08-27 15:37:47 -05:00
|
|
|
* @description
|
|
|
|
|
* A base class for directives that contain multiple registered instances of `NgControl`.
|
2016-06-08 15:36:24 -07:00
|
|
|
* Only used by the forms module.
|
2018-10-19 17:36:24 +01:00
|
|
|
*
|
|
|
|
|
* @publicApi
|
2016-06-08 15:36:24 -07:00
|
|
|
*/
|
2017-04-17 11:13:30 -07:00
|
|
|
export abstract class ControlContainer extends AbstractControlDirective {
|
2018-08-27 15:37:47 -05:00
|
|
|
/**
|
|
|
|
|
* @description
|
|
|
|
|
* The name for the control
|
|
|
|
|
*/
|
2018-06-18 16:38:33 -07:00
|
|
|
// TODO(issue/24571): remove '!'.
|
2020-04-06 15:44:00 -07:00
|
|
|
name!: string|number|null;
|
2016-06-08 15:36:24 -07:00
|
|
|
|
|
|
|
|
/**
|
2018-08-27 15:37:47 -05:00
|
|
|
* @description
|
2018-09-17 14:36:00 -05:00
|
|
|
* The top-level form directive for the control.
|
2016-06-08 15:36:24 -07:00
|
|
|
*/
|
2020-04-06 15:44:00 -07:00
|
|
|
get formDirective(): Form|null {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2016-06-08 15:36:24 -07:00
|
|
|
|
|
|
|
|
/**
|
2018-08-27 15:37:47 -05:00
|
|
|
* @description
|
2018-09-17 14:36:00 -05:00
|
|
|
* The path to this group.
|
2016-06-08 15:36:24 -07:00
|
|
|
*/
|
2020-04-06 15:44:00 -07:00
|
|
|
get path(): string[]|null {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2016-06-08 15:36:24 -07:00
|
|
|
}
|