![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.
ngp-material-rating
Advanced tools
Angular Library that uses material design icons for editing and showing rating variables. This library was generated with Angular CLI version 10.0.0.
Angular Library that uses material design icons for editing and showing rating variables. This library was generated with Angular CLI version 10.0.0.
npm i ngp-material-rating --save
NgpMaterialRating
requires Angular Material.
For angular version 8 or higher projects
ng add @angular/material
Importing the BrowserAnimationsModule into your application enables Angular's animation system. Declining this will disable most of Angular Material's animations.
You must import the module NgpMaterialRatingModule
where you will use it and use the component
***
import { NgpMaterialRatingModule } from 'ngp-material-rating';
@NgModule({
***
imports: [
NgpMaterialRatingModule,
],
****
})
In your component:
<ngp-material-rating [value]="rating"> </ngp-material-rating>
In .ts file
export class ExampleComponent {
rating = 4.5;
}
The NgpRatingMaterialComponent
component has a setting to change icon size, fill color, mode (read-only), maximum number of icons, presentation tags, and an option to put a clear button online. The interface look like this:
export interface MatStarConfig {
size?: string;
colorFill?: string;
label?: string;
readOnly?: boolean;
showNumber?: boolean;
showClearBtn?: boolean;
stars?: number;
}
export class AppComponent {
title = "ngp-material-rating-test";
rating = 3.5;
ratingForm = new FormControl(2.5, [Validators.required]);
config1: MatStarConfig = {
size: "22px",
readOnly: true,
colorFill: "#fa4508",
stars: 20,
};
config2: MatStarConfig = {
size: "36px",
readOnly: false,
showClearBtn: true,
showNumber: true,
};
}
<ngp-material-rating [config]="this.config1" [(ngModel)]="rating">
</ngp-material-rating>
<ngp-material-rating [config]="this.config2" [formControl]="ratingForm">
</ngp-material-rating>
FAQs
https://github.com/josealejandro2928/ngp-material-rating#readme
The npm package ngp-material-rating receives a total of 0 weekly downloads. As such, ngp-material-rating popularity was classified as not popular.
We found that ngp-material-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.