Description
ngx-bar-rating is a minimal, lightweight rating component for Angular. You import BarRating or BarRatingModule into your component, and import a theme in your global styles unless you use a custom template. Its inputs include rate, which can be a decimal such as 3.14, plus max, theme, readonly, showText, required, disabled and titles, where you can set a title for each possible value including 0. The rateChange output emits when the rating value changes. You can replace the default look with a custom template using three directives: ratingActive for bars or stars that are active or hovered, ratingInactive for inactive ones, and ratingFraction for partial values. The README shows examples using Bootstrap and FontAwesome icons, and a movie rating. The table of contents also covers click effects, CSS variables and themes. The project has a live demo and an installation section, and the source is on GitHub under MurhafSousli. It suits Angular developers who need a rating input without building one from scratch.…
Highlights
- Lightweight Angular rating component
- Decimal ratings and titles for each value
- Custom templates for active, inactive and fraction bars
- Themes and CSS variables
- Required and disabled flags for forms
Ratings & Reviews
No ratings yet
Be the first to rate ngx-bar-rating.
People also visit
ngx-bar-rating FAQ
What is ngx-bar-rating?
A minimal, lightweight rating component for Angular.
How do I install it?
Install it with npm, import BarRating or BarRatingModule into your component, and import a theme in your global styles.
Can I use my own icons?
Yes. The ratingActive, ratingInactive and ratingFraction directives set a custom template, and the README shows Bootstrap and FontAwesome examples.
Can it show decimal ratings?
Yes. The rate input can be a decimal value such as 3.14.
How do I react to changes?
Listen to the rateChange output, which emits when the rating value changes.
What are the best ngx-bar-rating alternatives?
Popular alternatives to ngx-bar-rating include react-rating, rc-rate and ngx-loading-bar. See all ngx-bar-rating alternatives

















