Change scroll content direction from directive



I’ve been trying to change the direction value of the ion-content from a directive. I’ve tried wrapping it on a timeout, the value on the DOM is changed but the scroll only works in the default direction (y)

It works if I place the variable on the beginning of the Controller but it doesn’t seem to take the change when on a directive

   scope.scrollDirection = atEmulator.checkIfEmulator() ? 'xy' : 'y';

Any suggestions ? I’ve looked at the scroll delegate but no luck.