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

Method _onInput

src/material/input/input.ts:448–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446 }
447
448 _onInput() {
449 // This is a noop function and is used to let Angular know whenever the value changes.
450 // Angular will run a new change detection each time the `input` event has been dispatched.
451 // It's necessary that Angular recognizes the value change, because when floatingLabel
452 // is set to false and Angular forms aren't used, the placeholder won't recognize the
453 // value changes and will not disappear.
454 // Listening to the input event wouldn't be necessary when the input is using the
455 // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
456 }
457
458 /** Does some manual dirty checking on the native input `value` property. */
459 protected _dirtyCheckNativeValue() {

Callers 1

_onInputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected