MCPcopy
hub / github.com/angular/angular / toggle

Method toggle

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

Source from the content-addressed store, hash-verified

2527 private currentPane: HTMLElement | null = null;
2528
2529 toggle() {
2530 if (this.opened) {
2531 this.close();
2532 } else {
2533 this.open();
2534 }
2535 }
2536
2537 open() {
2538 this.opened = true;

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected