An open API service indexing awesome lists of open source software.

https://github.com/mfbx9da4/angular-slideout

Mobile friendly, animated, reusable angular.js slideout directive.
https://github.com/mfbx9da4/angular-slideout

Last synced: about 1 month ago
JSON representation

Mobile friendly, animated, reusable angular.js slideout directive.

Awesome Lists containing this project

README

        

# Angularjs Slideout

Lightweight angular slideout directive for mobile which does not require angular-animate.js

### [Demo](http://mfbx9da4.github.io/projects/angular-slideout)

### 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.

```js
var angular_slideout = require('angular-slideout');
var app = angular.module('app', ['angular-slideout', 'ngTouch']);
app.controller('main', function($scope) {});
```

Otherwise import `slideout.min.js` as so.

```html

// import angular-slideout
var app = angular.module('app', ['angular-slideout', 'ngTouch']);
app.controller('main', function($scope) {});

```

### Usage

#### Configure your sidebar content

```html

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

```html


Show sidebar

```

####Configure swipe toggles (requires angular-touch)

```html


...

```