BaBaX Ra
BaBaX Ra

Reputation: 251

AngularJs Material design RTL layout

how can I change the whole layout of the angularjs material design component to RTL ?

Upvotes: 11

Views: 6043

Answers (3)

BaBaX Ra
BaBaX Ra

Reputation: 251

Dose not difference between them. Both do the same.

function rtlMode(mode) {
    if (mode) {
      direction = 'rtl';
    }
}

Upvotes: -2

BaBaX Ra
BaBaX Ra

Reputation: 251

I found a simple way to change page layout.

<html dir="rtl">

just this

Upvotes: 2

Mehdi Emrani
Mehdi Emrani

Reputation: 1313

you can do this by BiDirectional Provider

app.config(function($mdBiDirectionalProvider) {
    $mdBiDirectionalProvider.rtlMode(true);
}

look at this page

Upvotes: 8

Related Questions