npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@joaopedrofortes/angular-rating

v0.0.6

Published

Angular 18 lib for rating component

Downloads

3

Readme

angular-rating-lib

Angular 18 lib for rating component

Demo

Installation

npm install @joaopedrofortes/angular-rating

Usage

import { AngularRatingLibComponent } from '@joaopedrofortes/angular-rating';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [AngularRatingLibComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})

Example

<!-- An example defining just the value directive. In this case, the component will render in star format -->
<app-rating [value]="star.classification">
  <ng-container label>
    Star Example:
  </ng-container>
</app-rating>


 <!-- An example defining the type and length. In this case, the component will render 10 options in heart format -->
<app-rating type="heart"
    [length]="10"
    [value]="heart.classification"
    (valueChange)="changeClassification($event)">
  <ng-container label>
    Heart Example:
  </ng-container>
</app-rating>


 <!-- An example defining the type and hexColor.
      In this case, the component will render 5 heart-shaped options.
      When the user chooses an option, the fill color will be 'deeppink'-->
<app-rating type="heart" [hexColor]="'#FF1493'">
  <ng-container label>
    Pink Heart Example :
  </ng-container>
</app-rating>

Props

| Name | Value | | --------- | ------------- | | id: string | number: defines the main id for component's options| | type:Type | defines the type of options between star and heart | | hexColor:string | sets the fill color | | length:Limit | sets the range of options between 5 and 10 | | valueChange:Output | emits an event with the rating value every time the user changes |

Keywords

Angular, lib, rating, star rating, heart rating, Angular18