how to dynamically change the max value of rating in angularjs bootstrap ui -
i started using angularjs. using angularjs bootstrap-ui project. rating directive , want change max value. changes not reflected on rating directive
<rating ng-model="rate" max="max"></rating> <a href="#" ng-click="change(10)">change max</a> i start $scope.max = 5 works. if change max using function so.
$scope.change = function(value) { $scope.max = value; } this not reflected in directive.
i appreciate help.
it work - tried out in below plunker. http://plnkr.co/edit/trd0znyw8var8eewrkpj?p=preview
<rating ng-model="rate" max="max" readonly="isreadonly" on-hover="hoveringover(value)" on-leave="overstar = null"></rating> <a href="#" ng-click="change(8)">change maxim</a> can console.log , see output?
Comments
Post a Comment