Skip to content

Commit 80796b4

Browse files
committed
renamed menu method to toggleLeft() for clarity
1 parent ce60a45 commit 80796b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

www/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!-- Center content -->
3939
<pane side-menu-content nav-router>
4040
<header class="bar bar-header bar-assertive">
41-
<button class="button button-icon" ng-click="openLeft()"><i class="icon ion-navicon"></i></button>
41+
<button class="button button-icon" ng-click="toggleLeft()"><i class="icon ion-navicon"></i></button>
4242
<h1 class="title">Slide Me</h1>
4343
</header>
4444
<!-- where the content of each page will be rendered -->
@@ -53,7 +53,7 @@ <h1 class="title">Menu</h1>
5353
<content has-header="true">
5454
<ul class="list">
5555
<a href="{{item.link}}" class="item item-icon-left" ng-repeat="item in list"
56-
ng-click="openLeft()">
56+
ng-click="toggleLeft()">
5757
<i ng-class="item.iconClass"></i>
5858
{{item.text}}
5959
</a>

www/js/controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ angular.module('sideMenuApp.controllers', [])
44
// "MenuService" is a service returning mock data (services.js)
55
$scope.list = MenuService.all();
66

7-
$scope.openLeft = function () {
7+
$scope.toggleLeft = function () {
88
$scope.sideMenuController.toggleLeft();
99
};
1010
})

0 commit comments

Comments
 (0)