npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ng2-aside

v0.2.1

Published

Angular 2 Aside

Readme

#ng2-aside Imagine an aside menu that pushes your page or comes over it and so on.

NPM

$ npm install ng2-aside

Simple Example

// main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { NgModule }       from '@angular/core';
import { BrowserModule }  from '@angular/platform-browser';
import { AsideModule}     from 'ng2-aside';
import { AppComponent }   from './app.component';


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

platformBrowserDynamic().bootstrapModule(AppModule);
// app.component.ts
import {Component} from '@angular/core';


@Component({
    selector: 'my-app',
    templateUrl: 'app/template.html',
})

export class AppComponent {


}
<aside-layout>
                    <aside-menu #left1 side="left" width="240px" isBackdrop="true" sideMode="over">
                        <ul>
                            <li>Homepage</li>
                            <li>About</li>
                            <li>Contact</li>
                        </ul>
                    </aside-menu>
                    <aside-menu #left2 side="left" width="240px" isBackdrop="true" sideMode="push">
                        <ul>
                            <li>Homepage</li>
                            <li>About</li>
                            <li>Contact</li>
                        </ul>
                    </aside-menu>
                    <aside-menu #right1 side="right" width="320px" isBackdrop="true" sideMode="over">
                        <ul>
                            <li>Homepage</li>
                            <li>About</li>
                            <li>Contact</li>
                        </ul>
                    </aside-menu>
                    <aside-menu #right2 side="right" width="320px" isBackdrop="true" sideMode="push">
                        <ul>
                            <li>Homepage</li>
                            <li>About</li>
                            <li>Contact</li>
                        </ul>
                    </aside-menu>
                    <div class="aside-content">
                        <div class="wrapper">
                            <h1>Title</h1>
                            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat ligula magna, sit amet fringilla tellus tempus ac. Aliquam a velit non nisl semper laoreet vitae nec neque. Suspendisse potenti. Phasellus ut lacus eget sem consequat dictum et ac urna. Donec consectetur massa id augue interdum semper. Fusce ac justo neque. Nunc nec nulla velit. Fusce et neque mattis, mattis neque eu, vestibulum dui.</p>

                            <p>Proin pellentesque risus id ligula rhoncus, in convallis turpis auctor. Praesent laoreet mi augue, id ornare ante cursus sed. Nulla suscipit ligula eget tempus viverra. Praesent vitae convallis erat. Sed eu arcu tortor. Pellentesque cursus quam metus, vitae rhoncus turpis placerat sit amet. Nullam eu lacinia metus. In semper lectus id turpis lobortis elementum. Aenean consectetur magna vel hendrerit condimentum. Aenean porta ut eros vel laoreet.</p>
                            <p>Pellentesque imperdiet pharetra consequat. Donec et neque at turpis tincidunt mattis. Sed posuere, quam vel scelerisque porta, lorem dui molestie libero, ac pretium turpis massa non ligula. Curabitur elit magna, semper vel luctus id, ullamcorper et ex. Vivamus gravida blandit nisl in mollis. Duis tempor a lacus elementum consequat. Donec sagittis libero ac dapibus luctus. Pellentesque ut varius lacus. Phasellus tristique dapibus risus quis facilisis. Sed at dapibus turpis. Duis hendrerit augue eget velit ultrices commodo. Integer ut felis vel nunc vulputate lacinia. Cras felis lorem, eleifend sit amet purus ut, feugiat luctus nibh. Proin ullamcorper auctor congue. Vivamus finibus nisl sit amet ligula sagittis efficitur.</p>
                            <div style="margin:auto; display:table">
                                <button type="button" (click)="left1.toggle()">Toggle Left Over Aside</button>
                                <button type="button" (click)="right1.toggle()">Toggle Right Over Aside</button>
                            </div>
                            <div style="margin:auto; display:table">
                                <button type="button" (click)="left2.toggle()">Toggle Left Push Aside</button>
                                <button type="button" (click)="right2.toggle()">Toggle Right Push Aside</button>
                            </div>
                        </div>
                    </div>
                </aside-layout>

Configuration

| Parameter | Default | | | :------------- |:-------------------------------| :----- | | side | left | | | width | 240px | | | isBackdrop | false | | | sideMode | over | |

License

Licensed under the MIT license