# SlideMenu doesn't work

**URL:** <https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277>\
**Category:** ionic-v1\
**Created:** [February 21, 2014, 9:34pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277 "2014-02-21T21:34:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pink\_tshirt](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pink\_tshirt](https://forum.ionicframework.com/u/pink_tshirt)\
**Post date:** [February 21, 2014, 9:34pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/1 "2014-02-21T21:34:46Z")

</div>

Hi there, I am new to ionic / agnular js in general so I apologize in advance if the question is silly.

So I can’t get my slide menu to appear. I tried to follow the first tutorial from Chapter 3 but it didn’t get anywhere.

**index.html**

```
<body ng-app="app">
    <div ui-view></div>	
</body>

```

**app.js**

```
angular
	.module('app', [
		'ui.router',
		'ionic'
	])
	.config(['$urlRouterProvider', '$stateProvider', function($urlRouterProvider,$stateProvider) {
		
		$stateProvider
			.state('home', {
				url: '/',
				templateUrl: 'templates/home.html',
				controller: function($scope) {
				
				$scope.pageTitle = "Home"

				$scope.toggleProjects = function() {						     
                                    $scope.sideMenuController.toggleLeft();
				};
				
			}
			})

```

**home.html**

```
<ion-side-menus>
    <ion-pane ion-side-menu-content>
        <header class="bar bar-header bar-dark">
            <button class="button button-icon" ng-click="toggleProjects()">
                <i class="icon ion-navicon"></i>
            </button>

            <h1 class="title">{{pageTitle}}</h1>
        </header>
        <ion-content has-header="true">
            Hello World
        </ion-content>
    </ion-pane>

    <!-- Left menu -->
    <ion-side-menu side="left">
        <header class="bar bar-header bar-dark">
            <h1 class="title">Sidebar</h1>
        </header>
    </ion-side-menu>

</ion-side-menus>

```

What am I missing? Please help!

---

<div class="post-metadata">

**Author:** ![andy\_eagle](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@andy\_eagle](https://forum.ionicframework.com/u/andy_eagle)\
**Post date:** [February 21, 2014, 9:40pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/2 "2014-02-21T21:40:19Z")

</div>

what are you seeing? are you able to open the side menu by performing a swipe?

---

<div class="post-metadata">

**Author:** ![pink\_tshirt](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pink\_tshirt](https://forum.ionicframework.com/u/pink_tshirt)\
**Post date:** [February 21, 2014, 9:52pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/3 "2014-02-21T21:52:24Z")

</div>

Nothing really happens, no erors, nothing.

Well I tried to “swipe” the button with mouse but it doesn’t respond.

Also checked firebug:

```
tapElement BUTTON button button-icon
tapPolyfill isRecentTap BUTTON
preventGhostClick isRecentTap BUTTON

```

p.s. forgot to mention I only include ionic.bundle.js and ionic.css

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://forum.ionicframework.com/u/frank)\
**Post date:** [February 22, 2014, 3:43pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/4 "2014-02-22T15:43:27Z")

</div>

I have also been having this problem, but I can swipe to reveal the menu.

---

<div class="post-metadata">

**Author:** ![adam](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adam/32/63947_2.png) [@adam](https://forum.ionicframework.com/u/adam)\
**Post date:** [February 23, 2014, 2:04am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/5 "2014-02-23T02:04:15Z")

</div>

I updated the side menu codepen with a button in the header:  
[http://codepen.io/ionic/pen/EtbrF](http://codepen.io/ionic/pen/EtbrF)

However, I’m not in love with how it’s setup. @max, @andytjoslin and I will talk it over and come up with a better API for this.

---

<div class="post-metadata">

**Author:** ![richburke](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@richburke](https://forum.ionicframework.com/u/richburke)\
**Post date:** [February 23, 2014, 2:12am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/6 "2014-02-23T02:12:23Z")

</div>

I’m having a similar problem in the ToDo tutorial–i.e. I’m unable to reveal content or menus by swiping. The only thing that shows is “Projects.”

A few related notes:

- I’m developing on a Linux machine, using Chrome. I thought for awhile that might be the issue, but your supplied codepen sample works fine.
- I get a similar result on the Android emulator–just Projects is visible.

Awesome, awesome project though! Really excited about it!

---

<div class="post-metadata">

**Author:** ![pink\_tshirt](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pink\_tshirt](https://forum.ionicframework.com/u/pink_tshirt)\
**Post date:** [February 23, 2014, 2:29am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/7 "2014-02-23T02:29:42Z")

</div>

In my case I was developing an app in firefox and it simply didn’t work in it, but I just checked chrome and it works just fine.

---

<div class="post-metadata">

**Author:** ![adam](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adam/32/63947_2.png) [@adam](https://forum.ionicframework.com/u/adam)\
**Post date:** [February 23, 2014, 3:43am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/8 "2014-02-23T03:43:58Z")

</div>

In our nightly build we’ve made some changes so non-webkit browsers will work:

> <https://github.com/ionic-team/ionic/commit/52671c18f97d057aca581a566cc7ea27cc055314>

Please give that a shot and let us know how it goes, thanks.

---

<div class="post-metadata">

**Author:** ![pink\_tshirt](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pink\_tshirt](https://forum.ionicframework.com/u/pink_tshirt)\
**Post date:** [February 23, 2014, 4:44am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/9 "2014-02-23T04:44:21Z")

</div>

Thank you sir!

But how do you exactly update the package? Should I run something like

```
npm update ionic
```

---

<div class="post-metadata">

**Author:** ![adam](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adam/32/63947_2.png) [@adam](https://forum.ionicframework.com/u/adam)\
**Post date:** [February 23, 2014, 5:15am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/10 "2014-02-23T05:15:53Z")

</div>

Right now the easiest way is to manually copy it from the nightly build:  
[http://code.ionicframework.com/#nightly](http://code.ionicframework.com/#nightly)

---

<div class="post-metadata">

**Author:** ![pink\_tshirt](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pink\_tshirt](https://forum.ionicframework.com/u/pink_tshirt)\
**Post date:** [February 24, 2014, 2:59am UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/11 "2014-02-24T02:59:06Z")

</div>

Ok seems like everything is working fine in FF as well!  
p.s. Just noticed that the modal window component doesn’t have its animation in FF. It just pops up out of nowhere.

---

<div class="post-metadata">

**Author:** ![adam](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adam/32/63947_2.png) [@adam](https://forum.ionicframework.com/u/adam)\
**Post date:** [February 24, 2014, 8:54pm UTC](https://forum.ionicframework.com/t/slidemenu-doesnt-work/1277/12 "2014-02-24T20:54:24Z")

</div>

Thanks for reporting that, I created an issue for it: [https://github.com/driftyco/ionic/issues/671](https://github.com/driftyco/ionic/issues/671)
