Built on angular 5, star rating library. Can be used for your angular applications.
How to Use
Step 1 - Import in your app module
Step 2 - Include it in your component
Step 3 - Start using it in your HTML
1) Passing the new rating to your component
Step 1 - Add an additional attribute to detect the rating clicked in your html.
Step 2 - Create a function such as onRatingClicked and retrieve the rating from there
2)Change the number of stars
Step 1 - Add an additional attribute (starNum) to change the number of stars
- Warning - If your rating exceeds the number of stars, your rating would be equal to the number of stars
2)Make the stars only readable
Step 1 - Add an additional attribute (readOnly) to make the stars only readable after initializing it with a value
- Wearning - You won't be able to change the rating once the readOnly attribute is set to true