How To Change Angular Material 2 direction To RTL

Soheil Alizadeh picture Soheil Alizadeh · Dec 24, 2016 · Viewed 14.2k times · Source

I Want Create RTL Template With Angular Material 2 But، I do not know How To Do This Work? Please Help Me;

Answer

Milad picture Milad · Dec 24, 2016

You should use rtl as attribute

dir='rtl'

Here is a plunker

Go to index.html , you'll find :

<body >
   <chips-overview-example dir="rtl">Loading Material Docs example...</chips-overview-example>
</body>