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

Method registerInput

src/material/timepicker/timepicker.ts:299–307  ·  view source on GitHub ↗

Registers an input with the timepicker.

(input: MatTimepickerConnectedInput<D>)

Source from the content-addressed store, hash-verified

297
298 /** Registers an input with the timepicker. */
299 registerInput(input: MatTimepickerConnectedInput<D>): void {
300 const currentInput = this._input();
301
302 if (currentInput && input !== currentInput && (typeof ngDevMode === 'undefined' || ngDevMode)) {
303 throw new Error('MatTimepicker can only be registered with one input at a time');
304 }
305
306 this._input.set(input);
307 }
308
309 ngOnDestroy(): void {
310 this._keyManager.destroy();

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected