Skip to content

Instantly share code, notes, and snippets.

@mohanramphp
Created June 17, 2018 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohanramphp/10bec3cb4b226b22777909b6998c5adf to your computer and use it in GitHub Desktop.
Save mohanramphp/10bec3cb4b226b22777909b6998c5adf to your computer and use it in GitHub Desktop.
This to show how to use the rating component by sending the configuration to that component
<div style="text-align:center">
<h1>
Lets rate it!
</h1>
<lib-ratify [grade]="grade" [maxRating]="maxRating" [showRatingCounter]="showRatingCounter" (triggerRatingSelection)="selectedRating($event)"></lib-ratify>
<h1 *ngIf="myRating">
Rated to {{myRating}}
</h1>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment