Socket
Socket
Sign inDemoInstall

angular-material-sidemenu

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-material-sidemenu

A simple sidemenu for Angular Material


Version published
Maintainers
1
Install size
13.1 MB
Created

Readme

Source

Angular Material Sidemenu

Introduction

This is a package to create navigation menus using Angular Material. This follows all guidelines provided by Google.

Installation

This package can be installed using npm and bower:

  • npm install angular-material-sidemenu
  • bower install angular-material-sidemenu

Usage

Include the script and css files in you html and add ngMaterialSidemenu in you module. Also this module has support for browserify.

<link rel="stylesheet" href="path/to/angular-material-sidemenu.css">
<script src="path/to/angular-material-sidemenu.js"></script>

After that you can add the following markup:

<md-sidemenu locked="true">
  <md-sidemenu-group>
    <md-subheader class="md-no-sticky">Caption</md-subheader>

    <md-sidemenu-content md-icon="home" md-heading="Menu 1" md-arrow="true">
      <md-sidemenu-button href="#">Submenu 1</md-sidemenu-button>
      <md-sidemenu-button href="#">Submenu 2</md-sidemenu-button>
      <md-sidemenu-button href="#">Submenu 3</md-sidemenu-button>
    </md-sidemenu-content>
  </md-sidemenu-group>
  
  <md-sidemenu-group>
    <md-divider></md-divider>

    <md-subheader class="md-no-sticky">Caption</md-subheader>

    <md-sidemenu-button href="#">Menu 4</md-sidemenu-button>
  </md-sidemenu-group>
</md-sidemenu>

The <md-sidemenu> is the main directive to hold all navigation items.

The <md-sidemenu-group> is needed to create groups of content.

The <md-sidemenu-content> define the collapsible navigation element and theres some attributes to setup. The md-icon add an icon before the md-heading and the md-arrow add an arrow after the heading.

The <md-sidemenu-button> add the buttons inside the navigation.

Pretty easy!

License

MIT

Keywords

FAQs

Last updated on 14 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc