andrucz / ionic2-rating

:star: Angular star rating bar. Built for Ionic 2+.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marked stars

mvaipa opened this issue · comments

Hello, I'm using the plugin, but I can not leave a lot of stars marked, what could I be doing wrong? I'm using rate, but it's not right

<rating [(ngModel)]="rate"
readOnly="true"
rate="2"
max="5"
emptyStarIconName="star-outline"
halfStarIconName="star-half"
starIconName="star"
nullable="false">

Hello, @mvaipa. I don't know exactly what you mean by that. Keep in mind that the count of marked stars reflects the value of rate variable (that you set on ngModel).

Hi, u should implement OnInit and set the default values (ie numbers of stars marked you want).