MCPcopy
hub / github.com/angular/components / randomizeValue

Method randomizeValue

src/dev-app/timepicker/timepicker-demo.ts:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 randomizeValue() {
63 const value = new Date();
64 value.setHours(Math.floor(Math.random() * 23), Math.floor(Math.random() * 59), 0);
65 this.control.setValue(value);
66 }
67
68 ngOnDestroy(): void {
69 this._localeSubscription.unsubscribe();

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected