ih-ratings-count
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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">

Readme

Keywords

none

Package Sidebar

Install

npm i ih-ratings-count

Weekly Downloads

2

Version

1.0.4

License

none

Unpacked Size

122 kB

Total Files

14

Last publish

Collaborators

  • itsishraq