Socket
Socket
Sign inDemoInstall

ih-ratings-count

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ih-ratings-count

#Installation


Version published
Weekly downloads
6
Maintainers
1
Created
Weekly downloads
 

Readme

Source

IhStarRating

#

Installation

import {IhRatingsModule} from 'ih-ratings-count';

  1. Add IhRatingsModule to NgModule imports array. @NgModule({ imports: [ BrowserModule, IhRatingsModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] })
  2. To display ratings just need to pass the rating between 0 to 5. [rating]="4.2", [rating]="2.5", [rating]="1.1"

Syntax - <ih-ratings-count [rating]="2.4">

  1. Width is optional parameter. Default is 250px. If you want to increase or decrease the width you need to pass numeric value.

<ih-ratings-count [width]="300" [rating]="2.4">

FAQs

Last updated on 02 Mar 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc