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