ngx-nav-drawer
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-nav-drawer

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

48.9 kB

Total Files

15

Last publish

Collaborators

  • splintercode