Rating component for angular 8+ projects (ng9)
Creative rating with mutiple color variance
This preview was generated with Stackblitz
This library was generated with Angular CLI version 9.1.9.
To use this package as a service npm i ngx-rating-star
install this on the root angular project .
Note: Don't forget to run this commend
npm i ngx-rating-star
on root folder or else it will throw error.
Import the module on your app.module.ts
file as follow.
import { ngxRatingModule } from "ngx-rating-star";
Then import the module as follow on imports array
ngxRatingModule
After importing this library with ng build ng9-app-lib
, go to the component which is declared under app.module.ts
and integrate as below.
<ngx-rating [star]="1" [shape]="'star' | 'multistar' | 'fill'"></ngx-rating>
star : (required) value shoule be
1-5
shape : (required) value shoule be
'star' | 'multistar' | 'fill'
To get more help on the usage check out the Ngx rating star README.