# nodatasdk-angular2

## Installation

To install this library, run:

    $ npm install nodatasdk-angular2 --save

## Consuming your library

In your Angular2 `AppModule`:

    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';

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

    // Import NodataSdkModule
    import { NodataSdkModule } from 'nodatasdk-angular2';

    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,

        NodataSdkModule, // Add NodataSdkModule here

        LibraryModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }

Once your library is imported, you can use its components in your Angular2 application:

    <datablock-view
    [datablock]="datablock"
    [lib]="'witchart'"
    [config]="chartConfig"
    (filter)="filterFunction($events[0])"></datablock-view>

# results matching ""

# No results matching ""