diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js index a6e69aa81a..11b3b86230 100644 --- a/js/ext/angular/src/directive/ionicSideMenu.js +++ b/js/ext/angular/src/directive/ionicSideMenu.js @@ -401,7 +401,8 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie restrict: 'AC', require: '^ionSideMenus', link: function($scope, $element, $attr, sideMenuCtrl) { - var side = $scope.$eval($attr.menuToggle) || 'left'; + //This is always left because scope.$eval('right') will try to read scope.right + var side = $attr.menuToggle || 'left'; $element.bind('click', function(){ if(side === 'left') { sideMenuCtrl.toggleLeft(); diff --git a/js/ext/angular/test/list.html b/js/ext/angular/test/list.html index 3e7e53d6ba..7fcd7802cd 100644 --- a/js/ext/angular/test/list.html +++ b/js/ext/angular/test/list.html @@ -18,114 +18,126 @@
CLICK!
- + -
-
- -
-

List Tests

-
- -
-
+ - - - - - - - -

{{item.from}}

-

{{item.text}}

-
- - -
- Me Divider, just plain ol' HTML nested in the list directive. + +
+ +
+

List Tests

+
+ +
+
- - - - Individual item directive, but can't do much. Overrides list attributes with its own left and right icons. - - + - - - - Individual item directive and overrides list attrs with item attributes - + can-swipe="true" + option-buttons="optionButtons1"> - -
- Below is NOT using the item directive, but just nested HTML -
+ + + +

{{item.from}}

+

{{item.text}}

+
- -
- -

Nic Cage

-

I am not a demon. I am a lizard, a shark, a heat-seeking panther. I want to be Bob Denver on acid playing the accordion.

-
+ +
+ Me Divider, just plain ol' HTML nested in the list directive. +
- - - {{ item.text }} - - -
- - -
-

BLUE {{slideBox.slideIndex}}

-
-
- -
-

YELLOW {{slideBox.slideIndex}}

-
-
- -

PINK {{slideBox.slideIndex}}

-
-
-
+ + + + Individual item directive, but can't do much. Overrides list attributes with its own left and right icons. + + - + + + + Individual item directive and overrides list attrs with item attributes + -
+ +
+ Below is NOT using the item directive, but just nested HTML +
- + +
+ +

Nic Cage

+

I am not a demon. I am a lizard, a shark, a heat-seeking panther. I want to be Bob Denver on acid playing the accordion.

+
+ + + + {{ item.text }} + + +
+ + +
+

BLUE {{slideBox.slideIndex}}

+
+
+ +
+

YELLOW {{slideBox.slideIndex}}

+
+
+ +

PINK {{slideBox.slideIndex}}

+
+
+
+ + + + + + + + + Left menu! + +