---
id: fast-foundation.getdirection
title: getDirection variable
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [getDirection](./fast-foundation.getdirection.md)

## getDirection variable

a method to determine the current localization direction of the view

<b>Signature:</b>

```typescript
getDirection: (rootNode: HTMLElement) => Direction
```