fraserxu / ionic-rating

An angularjs directive that take care of visualising a star rating bar
MIT License
142 stars 54 forks source link

Changing icons doesn't work #7

Open tjku opened 9 years ago

tjku commented 9 years ago

Attributes state-on, state-off and rating-states doesn't work for me.

When I try to change default icons (to not to be stars), e.g. by writing <rating ng-model="x" state-on="'ion-thumbsup'" state-off="'ion-thumbsup'"></rating> or <rating ng-model="y" rating-states="ratingStates"></rating> this doesn't work. In first case, icons doesn't change, and in second case rating isn't displayed at all (even with default stars).

Apart from this, rating works just fine.

tjku commented 9 years ago

I've fixed this: #8

martov1 commented 9 years ago

I still cant make it work using this line <rating ng-model="x" state-on="'ion-thumbsup'" state-off="'ion-thumbsup'"></rating>

I see the rating with the default stars

matthieup240 commented 8 years ago

Hi,

I would like to change stars icons but stateOn="fa fa-star" doesn't work for me.

I also see the rating with the default stars.

Any help ?

Thanks