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

Method toggle

packages/core/test/acceptance/animation_spec.ts:2591–2597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2589 private currentPane: HTMLElement | null = null;
2590
2591 toggle() {
2592 if (this.opened) {
2593 this.close();
2594 } else {
2595 this.open();
2596 }
2597 }
2598
2599 open() {
2600 this.opened = true;

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected