Simple sidenav is a simple and easy-to-customize mobile menu, with infinite nesting capability that is specially designed for Angular applications.
angular 8 material sidenav example, toggle sidebar in angular 8, angular sidebar menu with submenu example, angularmaterial sidenav example, angular sidenav menu example
How to make use of it:
Installation
npm install simple-sidenav --save
Usage
# app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { SimpleSidenavModule } from 'simple-sidenav'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, AppRoutingModule, SimpleSidenavModule, BrowserAnimationsModule ], bootstrap: [AppComponent] }) export class AppModule { }
# app.component.ts import { Component } from '@angular/core'; import { SimpleMenu } from 'simple-sidenav'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { menu: SimpleMenu[] = [...]; animation: SimpleAnimation = { in: { value: 'slide-in-stagger' }, out: { value: 'slide-out', duration: 200 } }; onClick(item: {id: number|string, name: string, icon: string, index: number}) { ... } }
# app.component.html <sm-simple-sidenav [menu]="menu" [activeID]="'2'" [animation]="animation" [withArrow]="true" (onSidenav)="onClick($event)"> </sm-simple-sidenav>
Simple Side Nav For Angular, Simple sidenav Plugin/Github, angular material sidenav right side, angular material sidenav with icons
See Demo And Download
Official Website(codica2): Click Here
This superior jQuery/javascript plugin is developed by codica2. For extra advanced usage, please go to the official website.