Rating directive that will take care of visualising a star rating bar.
-
ng-model: The current rate. -
max(Defaults: 5) : Changes the number of icons. -
readonly(Defaults: false) : Prevent user's interaction. -
on-hover(value): An optional expression called when user's mouse is over a particular icon. -
on-leave(): An optional expression called when user's mouse leaves the control altogether. -
state-on(Defaults: null) : A variable used in template to specify the state (class, src, etc) for selected icons. -
state-off(Defaults: null) : A variable used in template to specify the state for unselected icons. -
rating-states(Defaults: null) : An array of objects defining properties for all icons. In default template,stateOn&stateOffproperty is used to specify the icon's class.