Use either value
or ng-model
, not both, depending on which UI Bootstrap version you are using.
JS for both cases:
appControllers.controller("singleRatingController", function ($scope, $http) {
$scope.rate = 2;
});
HTML - If using 0.11.0:
<rating ng-model="rate" max="5" readonly="false"></rating>
HTML - If using 0.10.0 or below:
<rating value="rate" max="5" readonly="false"></rating>