angular2-simple-slider

0.0.2 • Public • Published

angular2-simple-slider

Installation

To install slider, run:

$ npm install angular2-simple-slider --save

Consuming your library

You can import your library in any Angular application by running:

$ npm install angular2-simple-slider

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
 
import { AppComponent } from './app.component';
//import slidert component
import { SliderComponent } from 'angular2-simple-slider';
 
@NgModule({
  declarations: [
    AppComponent,
    //declare slider
    SliderComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
 

Once slider is imported, you can use it in your Angular application:

<!-- You can now use slider component in app.component.html -->
<h1>
  {{title}}
</h1>
<slider (change)="onChange($event)"></slider>

License

MIT © bezzubov egor

/angular2-simple-slider/

    Package Sidebar

    Install

    npm i angular2-simple-slider

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • bezzubov_egor