0.0.3 • Published 6 years ago

ngx-nav-drawer v0.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

ngx-nav-drawer

npm version

A small component for simple navigation drawers.

Demo

Installation

To install this library, run:

npm install ngx-nav-drawer --save

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { NgxNavDrawerModule } from 'ngx-nav-drawer';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    ReactiveFormsModule,
    NgxNavDrawerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Component

Once the library is imported, you can use the ngx-input-switch component.

import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-root',
  template: `
<h1>ngx-nav-drawer</h1>

<ngx-nav-drawer [(open)]="show">
  <a routerLink="/">Home</a>
  <a routerLink="/about">About</a>
  <a routerLink="/contact">Contact</a>
</ngx-nav-drawer>
  `
})
export class AppComponent implements OnInit {
  show = false;
  constructor() { }

  ngOnInit() { }
}

License

MIT © Cory Rylan

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago