Angularjs Slideout
Lightweight angular slideout directive for mobile which does not require angular-animate.js
Demo
Dependencies
- angular
- Optional dependency of angular touch for swiping menu away
Install
If you are using npm or webpack
npm install --save angular-slideout
Import angular-slideout after angular and require it as a module to your app.
var angular_slideout = ;var app = angular;app;
Otherwise import slideout.min.js
as so.
<!-- Angular --><!-- Angular touch (not required) --><!-- Slideout module --><!-- Your App Code -->
Usage
Configure your sidebar content
Back Menu content
- The slideout attribute: Use a boolean variable to determine whether to show slideout.
- The slideout direction: Options are 'from-left' or 'from-right'
Configure sidebar toggles
Show sidebar
Configure swipe toggles (requires angular-touch)
...