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

Method getDirection

src/cdk/overlay/overlay-ref.ts:405–413  ·  view source on GitHub ↗

* Returns the layout direction of the overlay panel.

()

Source from the content-addressed store, hash-verified

403 * Returns the layout direction of the overlay panel.
404 */
405 getDirection(): Direction {
406 const direction = this._config.direction;
407
408 if (!direction) {
409 return 'ltr';
410 }
411
412 return typeof direction === 'string' ? direction : direction.value;
413 }
414
415 /** Switches to a new scroll strategy. */
416 updateScrollStrategy(strategy: ScrollStrategy): void {

Callers 3

overlay.spec.tsFile · 0.80
_isRtlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected