Toggle side menu when wanted

This commit is contained in:
Max Lynch
2013-10-07 01:07:57 -05:00
parent 7be6672119
commit 02a540b468
3 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,7 @@ angular.module('ionic.ui.sideMenu', [])
});
$scope.contentTranslateX = 0;
$scope.sideMenuCtrl = this;
})
.directive('sideMenuCtrl', function() {
@ -61,7 +62,6 @@ angular.module('ionic.ui.sideMenu', [])
},
setTranslateX: function(amount) {
$scope.contentTranslateX = amount;
$scope.$apply();
$element[0].style.webkitTransform = 'translate3d(' + amount + 'px, 0, 0)';
},
enableAnimation: function() {