I want to bind a $scope.variable to another $scope.variable like this:
$scope.b = '';
$scope.a = $scope.b;
$scope.b = 10;
console.log($scope.a);// It gives blank value
In other words, i want to assign $scope.b value to $scope.a whenever $scope.b get a value.
$scope.band update$scope.ain the callback.