Ion-side-menu side

Hello Guys,

I want to change menu side for left and right based in scope/rootScope variable.

if i put string directly in html works perfect (left and right)
or

but if i put this

<ion-side-menu side="{{var}}"> 

and in controller
$rootScope.var = “left”;

Wount work. any help here?