dreyescat / bootstrap-rating

Bootstrap Rating is a jQuery plugin that creates a rating control that uses Bootstrap glyphicons for rating symbols.
http://dreyescat.github.io/bootstrap-rating/
MIT License
192 stars 78 forks source link

Value not receiving angular variables sometimes #28

Closed cheriyankmaman closed 7 years ago

cheriyankmaman commented 7 years ago

<input type="hidden" class="rating" data-fractions="10" id="ho_rating" value='{{rating}}' data-readonly data-filled="fa fa-star fa-2x" data-empty="fa fa-star-o fa-2x" />

the above code not showing stars.

dreyescat commented 7 years ago

I don't know Angular but I think you are mixing two different worlds. Angular uses a declarative way of building interfaces while jQuery is imperative. You are trying to use two way data binding for value. However, in jQuery this attribute is just used as initialization.

Try google how to integrate jquery plugins in angular. I think you need some extra work. Probably you will have to create an Angular wrapper if you want to reuse this component with Angular in this way.