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
NameDescription

change: new 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
NameDescription
@Output('dirChange')

change: new EventEmitter<Direction>()

Event emitted when the direction changes.

value: Direction

Current layout direction of the element.