IhStarRating
#
Installation
import {IhRatingsModule} from 'ih-ratings-count';
- Add IhRatingsModule to NgModule imports array.
@NgModule({
imports: [ BrowserModule, IhRatingsModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
- To display ratings just need to pass the rating between 0 to 5.
[rating]="4.2", [rating]="2.5", [rating]="1.1"
Syntax - <ih-ratings-count [rating]="2.4">
- Width is optional parameter. Default is 250px. If you want to increase or decrease the width you need to pass numeric value.
<ih-ratings-count [width]="300" [rating]="2.4">