0.7.0 • Published 7 years ago

ng4-tree v0.7.0

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

ng4-tree

Installation

To install this library, run:

$ npm install ng4-tree --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install ng4-tree

and then from your Angular AppModule:

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

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

// Import your library
import { Ng4TreeModule } from 'ng4-tree';

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

    // Specify your library as an import
    Ng4TreeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use it as a component in your Angular application:

<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<ng4-tree-component [data]="locationGrouplist" (click)="showLocations($event.locationGroupID, 0)"></ng4-tree-component>

License

MIT © Sanjay Kumar Singh

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago