Fixed #464 - side menu delegate

This commit is contained in:
Max Lynch
2014-01-23 12:55:40 -06:00
parent 5ded0a3708
commit 766f97d94b
9 changed files with 136 additions and 7 deletions

View File

@@ -57,7 +57,7 @@
<script>
angular.module('sideMenuTest', ['ionic'])
.controller('MenuCtrl', function($scope) {
.controller('MenuCtrl', function($scope, $ionicSideMenuDelegate) {
$scope.list = [];
for(var i = 0; i < 20; i++) {
$scope.list.push({
@@ -65,7 +65,7 @@
});
}
$scope.openLeft = function() {
$scope.sideMenuController.toggleLeft();
$ionicSideMenuDelegate.toggleLeft($scope);
};
});
</script>