I Want Create RTL Template With Angular Material 2 But، I do not know How To Do This Work? Please Help Me;
How To Change Angular Material 2 direction To RTL
22.9k Views Asked by Soheil Alizadeh At
5
There are 5 best solutions below
1
On
you should add attribute dir=rtl to <html> tag, Because angular material.js code using this document.dir to distinguish layout direction
0
On
if you wish to change All element's directions in website, Use the following style (called Universal selector) in your styles.css file.
* {
direction: rtl;
}
You should use rtl as attribute
Here is a plunker
Go to index.html , you'll find :