0

Please or Register to create posts and topics.

How I can changing rtl/ltr direction dynamically

Hi,

I would like to have the language in English, but the data collection should be in Arabic.

I would like to be able to change the direction of the input for my program via an option. Can someone help me or give a tip here?

 

Regards Ingo

Will this fit your requirements?

<input dir="rtl" id="foo"/>

Details can be found here: https://stackoverflow.com/questions/7524855/right-to-left-text-html-input

 

Hello Eben,

I found a better way.

div id="app_container" [class.is-mobile]="mobileQuery.matches" class="nav-container" [dir]="drectionality">

I add the [dir] into the app.component.html. Its work fine.

 

Thanks for your help.

Regards Ingo

Good approach.
Glad you got it working.

Regards,
Eben Monney

Ingo has reacted to this post.
Ingo