![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
ionic-rating
Advanced tools
A simple Ionic 4 stars rating component using Angular, with an easy API and support for all methods of binding (Property and Event Binding, Template Forms and Reactive Forms).
A simple Ionic 4 stars rating component using Angular, with an easy API and support for all methods of binding (Property and Event Binding, Template Forms and Reactive Forms).
The current version of the library is compatible with Ionic 4. To use it with Ionic 3, please install v1.x.x.
Using npm
npm install --save ionic-rating
Using yarn
yarn add ionic-rating
Once installed you need to import our module in the parent module for the component you will be using it in:
import { IonicRatingModule } from 'ionic-rating';
@NgModule({
...
imports: [IonicRatingModule, ...],
...
})
export class YourModule {
}
Include the component on page template, like the example below:
<ion-rating [rate]="rate"
readonly="false" <!--default value-->
size="default" <!--default value-->
(rateChange)="onRateChange($event)">
</ion-rating>
Template Forms:
<ion-rating [(ngModel)]="rate"
readonly="false" <!--default value-->
size="default" <!--default value-->
(ngModelChange)="onModelChange($event)">
</ion-rating>
Reactive Forms:
<ion-rating formControlName="rate"
readonly="false" <!--default value-->
size="default" <!--default value-->
</ion-rating>
number
[0-5]boolean
that controls wether editing the rating is allowed or notboolean
that controls wether the rating should reset if the same rate is selected again'small' | 'default' | 'large'
EventEmitter<number>, called whenever you hover on a rating value
EventEmitter<number>, called whenever you stop hovering on the rating, it passes the last value you hovered on before leaving
EventEmitter<number>, called whenever you select a rating value
ion-rating {
--color: gray;
--color-filled: green;
}
👤 Rodaina Mohamed
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2019 Rodaina Mohamed.
This project is MIT licensed.
FAQs
A simple Ionic 4 stars rating component using Angular, with an easy API and support for all methods of binding (Property and Event Binding, Template Forms and Reactive Forms).
The npm package ionic-rating receives a total of 0 weekly downloads. As such, ionic-rating popularity was classified as not popular.
We found that ionic-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.