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

Method toggle

src/material/checkbox/checkbox.ts:411–414  ·  view source on GitHub ↗

Toggles the `checked` state of the checkbox.

()

Source from the content-addressed store, hash-verified

409
410 /** Toggles the `checked` state of the checkbox. */
411 toggle(): void {
412 this.checked = !this.checked;
413 this._controlValueAccessorChangeFn(this.checked);
414 }
415
416 protected _handleInputClick() {
417 const clickAction = this._options?.clickAction;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected