I just started using angularjs. I am using angularjs bootstrap-ui for this project. I am rating directive and I want to change the max value. But the changes are not reflected on the rating directive
<rating ng-model="rate" max="max"></rating>
<a href="#" ng-click="change(10)">Change Max</a>
I start with $scope.max = 5 it works. But if I change the max using a function like so.
$scope.change = function(value) {
$scope.max = value;
}
This is not reflected in the directive.
I appreciate any help.