Bidirectionality

API for bidi

API reference for Angular CDK bidi

import {BidiModule} from '@angular/cdk/bidi';

The directionality (LTR / RTL) context for the application (or a subtree of it). Exposes the current direction and a stream of direction changes.

Properties
Name Description

change: EventEmitter<Direction>

Stream that emits whenever the 'ltr' / 'rtl' state changes.

value: Direction

The current 'ltr' or 'rtl' value.

Directive to listen for changes of direction of part of the DOM.

Provides itself as Directionality such that descendant directives only need to ever inject Directionality to get the closest direction.

Selector: [dir]

Exported as: dir
Properties
Name Description
@Output('dirChange')

change: EventEmitter<Direction>

Event emitted when the direction changes.

value: Direction

Current layout direction of the element.

type Direction = 'ltr' | 'rtl';