import {BidiModule} from '@angular/cdk/bidi';
Directionality
The directionality (LTR / RTL) context for the application (or a subtree of it). Exposes the current direction and a stream of direction changes.
Name | Description |
---|---|
|
Stream that emits whenever the 'ltr' / 'rtl' state changes. |
|
The current 'ltr' or 'rtl' value. |
Dir
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: dirName | Description |
---|---|
@Output('dirChange')
|
Event emitted when the direction changes. |
|
Current layout direction of the element. |
Direction
type Direction = 'ltr' | 'rtl';