MCPcopy Index your code
hub / github.com/angular/components / getDirection

Method getDirection

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

* Returns the layout direction of the overlay panel.

()

Source from the content-addressed store, hash-verified

376 * Returns the layout direction of the overlay panel.
377 */
378 getDirection(): Direction {
379 const direction = this._config.direction;
380
381 if (!direction) {
382 return 'ltr';
383 }
384
385 return typeof direction === 'string' ? direction : direction.value;
386 }
387
388 /** Switches to a new scroll strategy. */
389 updateScrollStrategy(strategy: ScrollStrategy): void {

Callers 3

overlay.spec.tsFile · 0.80
_isRtlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected