Fix: Ledger was not updating because $watch was not firing.

This commit is contained in:
tanshu 2016-04-13 15:56:38 +05:30
parent e868a213b1
commit 9b516fa41c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', '
$scope.selected = index;
};
$scope.$watch(['info', 'hidden'], function () {
$scope.$watchGroup(['info', 'hidden'], function () {
var filtered = $scope.doFilter($scope.hidden, $scope.info.Body);
$scope.ledger = filtered.Body;
$scope.footer = filtered.Footer;