I have a default value for $scope.buttonId = 0
which I am using in button ng-click function like,
<button type="button" class="btn green" ng-click="vm.Update({{buttonId}})">
{{ 'Save' | translate }}
</button>
Here it is showing me 0 in button function. But when I change $scope.buttonId value in controller function like,
vm.Select = function (value) {
$scope.buttonId = 5;
}
It is not updating $scope value. It is in the same controller using for view.
Is there any other way to pass id to button function.
Hopes for your suggestion
Thanks