Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ion-star-ratings
Advanced tools
npm i ion-star-ratings
import { IonStarRatingsComponent } from 'ion-star-ratings';
@Component({
standalone: true,
imports: [IonStarRatingsComponent]
})
<ion-star-ratings
activeIcon = "star"
defaultIcon = "star-outline"
activeColor = "#488aff"
defaultColor = "#f4f4f4"
[readonly]="false"
[halfStar]="false"
rating="3"
fontSize = "32px"
(ratingChanged)="onRatingChange($event)">
</ion-star-ratings>
<form>
component. <form [formGroup]="customForm">
<ion-star-ratings
activeIcon = "star"
defaultIcon = "star-outline"
activeColor = "#d1301a"
defaultColor = "#aaaaaa"
[readonly]="false"
[halfStar]="false"
fontSize = "32px"
(ratingChanged)="onRatingChange($event)"
formControlName="starRating">
</ion-star-ratings>
</form>
true
, default is set to false
. The rating value then steps by 0.5 instead of 1. Single tap on defaultIcon changes it to halfIcon , tap on halfIcon changes it to activeIcon and tap on activeIcon changes it to halfIcon again.false
, change to true
and make it read only. End user won't be able to change the rating then.<form>
componentTo get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
The MIT License (MIT). Please see License File for more information.
FAQs
## NPM
We found that ion-star-ratings 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.