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

Function dir

src/material/menu/menu-trigger-base.ts:182–184  ·  view source on GitHub ↗

The text direction of the containing app.

()

Source from the content-addressed store, hash-verified

180
181 /** The text direction of the containing app. */
182 get dir(): Direction {
183 return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
184 }
185
186 /** Whether the menu triggers a sub-menu or a top-level one. */
187 protected _triggersSubmenu(): boolean {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected