Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-rating-stars

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-rating-stars - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

grey-star.jpg

2

package.json
{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "ngx-rating-stars",
"version": "0.0.8",
"version": "0.1.0",
"description": "A simple rating stars component",

@@ -6,0 +6,0 @@ "author": "Andrea Di Cioccio",

# ngx-rating-stars
This library is still under development, is not stable.
## Installation
```bash
npm install ngx-rating-stars@latest
```
Copy the stars images files in /assets/images
##Usage
ngModule
```typescript
import { NgxRatingStarsModule } from 'ngx-rating-stars'
@NgModule({
...
imports: [
...
NgxRatingStarsModule
]
})
```
template
```html
<ngx-rating-stars [rating]="rating" [size]="size"></ngx-rating-stars>
```
component
```typescript
rating = {
value:3.6,
count:12
}
size = {
starsStyle: {'height' : '22px', 'width' : '22px'},
ratingStyle: {'font-size' : '18px'},
countStyle: {'font-size' : '14px'}
}
```
The object rating has the value and the count of all rating (12 votes).
The object size has informations for styles
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc