Skip to content

Snap.js not working with Ionic #206

@dbaq

Description

@dbaq

Hi,

I ran into an issue with Ionic. I use snap.js for the side menu.

I got the following code:

<div snap-content snap-options="opts">
  <header class="bar bar-header bar-positive">
      <button class="button " ng-click="toggleMenu()">
        <img src="img/icon-menu.svg" alt="&#9776;" />
      </button>
      <h1 class="title">APP</h1>
  </header> 

  <ng-view></ng-view> 
</div> 

and

$scope.toggleMenu = function() {
     snapRemote.toggle('left');
    console.log('toggle menu');
}

It works perfectly on chrome but on my iOS simulator and on my nexus 4, the menu does not toggle but "toggle menu" appears in the console.

If I remove ionic from the list:
angular.module('app', ['snap', 'ionic',.. it is also working.

Any thoughts on that?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions