(allDirectiveMatches: TcbDirectiveMetadata[])
| 483 | * the `field` input. |
| 484 | */ |
| 485 | export function isFormControl(allDirectiveMatches: TcbDirectiveMetadata[]): boolean { |
| 486 | let result = false; |
| 487 | for (const match of allDirectiveMatches) { |
| 488 | if (match.inputs.hasBindingPropertyName('formField')) { |
| 489 | if (!isFieldDirective(match)) { |
| 490 | return false; |
| 491 | } |
| 492 | result = true; |
| 493 | } |
| 494 | } |
| 495 | return result; |
| 496 | } |
no test coverage detected