Git Product home page Git Product logo

ng-mobile-menu's Introduction

ng-mobile-menu

An AngularJS module that provides a slide out menu for your application.

Usage

Include the CSS and JS files:

<link rel="stylesheet" href="ng-mobile-menu.min.css" />
<link rel="stylesheet" href="your-custom-stylesheet.css" />

<!-- ng-mobile-menu.js should be referenced after Angular and before your app -->
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript" src="ng-mobile-menu.min.js"></script>
<script type="text/javascript" src="your-angular-app.js"></script>

Add shoppinpal.mobile-menu as dependency in your app.

angular.module('your-awesome-app',['shoppinpal.mobile-menu']);

Then you just need to structure your HTML like this:

<div id="sp-nav">
<!-- put your menu in here -->
</div>

<div id="sp-page">
<!-- put your page content in here -->
</div>

Hide and show the menu in an ngClick like this ng-click="$spMenu.toggle()". (.show() and .hide() are also available if you need them)

<button ng-click="$spMenu.toggle()">Menu</button>

Demo

Check the /demo folder in the repository for a working demo.

Changelog

0.2.0

Breaking Changes

No longer using href targets to show and hide menu. Now you must use the new $spMenu provider to show and hide the menu.

0.1.3

  • Issue #2 : Change menu to use 80% width for more consistent appearance across mobile device resolutions.
  • On larger screens (tablets, desktops) default width will be 20% for menu
  • Issue #1: Add support for #sp-nav.wide which will always use a width of 80% regardless of screen size. Just add class="wide" to your sp-nav element.

0.1.2

Use hardware accelerated CSS transitions.

0.1.1

Remove horizontal scroll bars when menu is showing.

0.1.0

Initial release

ng-mobile-menu's People

Contributors

jeff-french avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.