MCPcopy Create free account
hub / github.com/angular/components / empty

Method empty

src/material/input/input.ts:511–518  ·  view source on GitHub ↗

* Implemented as part of MatFormFieldControl. * @docs-private

()

Source from the content-addressed store, hash-verified

509 * @docs-private
510 */
511 get empty(): boolean {
512 return (
513 !this._isNeverEmpty() &&
514 !this._elementRef.nativeElement.value &&
515 !this._isBadInput() &&
516 !this.autofilled
517 );
518 }
519
520 /**
521 * Implemented as part of MatFormFieldControl.

Callers 1

MyTelInputClass · 0.45

Calls 2

_isNeverEmptyMethod · 0.95
_isBadInputMethod · 0.95

Tested by

no test coverage detected