I have simple controller code:

**JS** 

```
$scope.showErrorAlert = false;

$scope.switchBool = function(value) {
    value = !value;
};

```

**HTML**

```
<div class="alert alert-error" ng-show="showErrorAlert">
                <button type="button" class="close" data-ng-click="switchBool(showErrorAlert)" >×</button>
              <strong>Error!</strong> {{errorTextAlert}}
             </div>

```

From snippets of code you can see that I try to change `$scope.showErrorAlert` value.

However it doesn't work, `value` changes but not `showErrorAlert`.

Can anybody tell me why and how to make it work, please?

Thank you