MCPcopy Index your code
hub / github.com/angular/angular / isNativeFormElement

Function isNativeFormElement

packages/forms/src/directives/native.ts:24–28  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

22 | (HTMLTextAreaElement & {type: 'textarea'});
23
24export function isNativeFormElement(element: HTMLElement): element is NativeFormControl {
25 return (
26 element.tagName === 'INPUT' || element.tagName === 'SELECT' || element.tagName === 'TEXTAREA'
27 );
28}
29
30export function elementAcceptsMinMax(element: HTMLElement): boolean {
31 if (element.tagName !== 'INPUT') {

Callers 2

ngControlCreateFunction · 0.90
FormFieldClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…