Gets the locale.
The locale.
Sets the locale.
The locale.
Gets the CSS class for LTR direction.
The CSS class for LTR direction.
Sets the CSS class for LTR direction.
The CSS class for LTR direction.
Gets the CSS class for RTL direction.
The CSS class for RTL direction.
Sets the CSS class for RTL direction.
The CSS class for RTL direction.
Directive to set the text direction (LTR/RTL) and apply corresponding CSS classes based on the locale. The directive uses LocaleService to get the current locale. The locale can be overridden by setting the
locale
input. The directive will add thedir
attribute to the element with the valuertl
orltr
based on the locale. The directive will add the CSS class specified in thertlCssClass
input when the locale is RTL. The directive will add the CSS class specified in theltrCssClass
input when the locale is LTR.