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

Method toggle

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

Source from the content-addressed store, hash-verified

2572 private currentPane: HTMLElement | null = null;
2573
2574 toggle() {
2575 if (this.opened) {
2576 this.close();
2577 } else {
2578 this.open();
2579 }
2580 }
2581
2582 open() {
2583 this.opened = true;

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected