ng2-pure-rating
v0.1.1
Published
A pure Angular2 Rating component. Consuming in cli as follows: ## Installation
Downloads
5
Readme
ng2-pure-rating
A pure Angular2 Rating component. Consuming in cli as follows:
Installation
To install this library, run:
$ npm install ng2-pure-rating --save
Consuming your library (angular-cli)
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install ng2-pure-rating
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 { SampleModule } from 'ng2-pure-rating';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
RatingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once your library is imported, you can use its components, directives and pipes in your Angular application:
<!-- You can now use the rating component in app.component.html -->
<input-rating [max]="3"></input-rating>
License
MIT © Pratik Kelwalkar