angular2-simple-slider
v0.0.2
Published
Angular2 simple slider
Downloads
4
Readme
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