1.0.2 • Published 7 years ago

ng2-tabby v1.0.2

Weekly downloads
15
License
-
Repository
github
Last release
7 years ago

ng2-tabby

ng2-tabby is a gentle plugin that will leave you warm and cozy on the inside.

Demo

Getting Started

    npm install ng2-tabby --save

Usage

Import service

Import into your app module as a provider.

    // app.module

    import { TabbyService } from 'ng2-tabby';

    @NgModule({
        providers: [
            // Kittens galore
            TabbyService
        ]
    });

Initialize

Initialize in your app component.

    import { TabbyService } from 'ng2-tabby';

    export class AppComponent {

        constructor(private tabbyService: TabbyService) {

            this.tabbyService.init();

        }
    }

Using Webpack

This should work well out of the box with webpack.

Using System.js

Map ng2-tabby and declare as a package

    // systemjs.config.js

    map: {
      "ng2-tabby": "npm:ng2-tabby",
    },    
    packages: {
      'ng2-tabby': {
        main: './index.js',
        defaultExtension: 'js'
      }
    }

Use

Show me kittens! Press TAB + b and let the cuteness overwhelm you.