(ionic) How can I apply a side waybill?

I recently tried to create a background menu. I want to make an invoice contact on the menu side.

However, I do not want to post content.

    <ion-side-menus>
  <!-- Center content -->
  <ion-side-menu-content ng-controller="ContentController">
  </ion-side-menu-content>

  <!-- Left menu -->
  <ion-side-menu side="left">
  </ion-side-menu>

  <!-- Right menu -->
  <ion-side-menu side="right">
  </ion-side-menu>

  <ion-side-menu-content>
  <!-- Main content, usually <ion-nav-view> -->
  </ion-side-menu-content>
</ion-side-menus>

    function ContentController($scope, $ionicSideMenuDelegate) {
  $scope.toggleLeft = function() {
    $ionicSideMenuDelegate.toggleLeft();
  };
}
+4
source share
3 answers

There is a fork for this

https://github.com/driftyco/ionic-ion-drawer

And an example on codepen. http://codepen.io/Yuripetusko/pen/VYqRNg

As I know, it was not merged with the main repo, so you need to add the file separately, and then add it to the module

angular.module('ionicApp'['ionic','ionic.contrib.drawer'])
       .controller('appCtrl', function($scope) {   
});
+6
source

Try it. This is exactly what you are looking for.

http://nlmd.vincurekf.cz/

0
source

All Articles