I am using ngx-translate in ionic 4 to add different languages. In my project I have arabic language. ngx-translate functionality is working fine. It is changing dir for html tag dynamically.
Problem: I want to write some styles if html tag has dir="rtl" in each component. But angular has default encapsulation, So I am unable to write the styles as follows in my component.scss file.
html[dir="rtl"]{
h3{
color: red;
}
}
I know that angular provides encapsulation change properties like,
encapsulation: ViewEncapsulation.None
But I don't want to use the advantage of encapsulation.
Thanks for the help.