Reputation: 251
how can I change the whole layout of the angularjs material design component to RTL ?
Upvotes: 11
Views: 6043
Reputation: 251
Dose not difference between them. Both do the same.
function rtlMode(mode) {
if (mode) {
direction = 'rtl';
}
}
Upvotes: -2
Reputation: 251
I found a simple way to change page layout.
<html dir="rtl">
just this
Upvotes: 2
Reputation: 1313
you can do this by BiDirectional Provider
app.config(function($mdBiDirectionalProvider) {
$mdBiDirectionalProvider.rtlMode(true);
}
look at this page
Upvotes: 8